io.zulia.server.config.ZuliaConfig Maven / Gradle / Ivy
package io.zulia.server.config;
import io.zulia.server.config.cluster.MongoServer;
import java.util.Collections;
import java.util.List;
public class ZuliaConfig {
private String dataPath = "data";
private boolean cluster = false;
private String clusterName = "zulia";
private List mongoServers = Collections.singletonList(new MongoServer());
private String serverAddress = null; //null means autodetect
private int servicePort = 32191;
private int restPort = 32192;
public ZuliaConfig() {
}
public String getDataPath() {
return dataPath;
}
public boolean isCluster() {
return cluster;
}
public String getClusterName() {
return clusterName;
}
public List getMongoServers() {
return mongoServers;
}
public String getServerAddress() {
return serverAddress;
}
public int getServicePort() {
return servicePort;
}
public int getRestPort() {
return restPort;
}
public void setDataPath(String dataPath) {
this.dataPath = dataPath;
}
public void setCluster(boolean cluster) {
this.cluster = cluster;
}
public void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
public void setMongoServers(List mongoServers) {
this.mongoServers = mongoServers;
}
public void setServerAddress(String serverAddress) {
this.serverAddress = serverAddress;
}
public void setServicePort(int servicePort) {
this.servicePort = servicePort;
}
public void setRestPort(int restPort) {
this.restPort = restPort;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy