|
|
|
@ -232,11 +232,11 @@ public class Config {
|
|
|
|
|
return clusterServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected ClusterServersConfig getClusterServersConfig() {
|
|
|
|
|
public ClusterServersConfig getClusterServersConfig() {
|
|
|
|
|
return clusterServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void setClusterServersConfig(ClusterServersConfig clusterServersConfig) {
|
|
|
|
|
public void setClusterServersConfig(ClusterServersConfig clusterServersConfig) {
|
|
|
|
|
this.clusterServersConfig = clusterServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -262,11 +262,11 @@ public class Config {
|
|
|
|
|
return replicatedServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected ReplicatedServersConfig getReplicatedServersConfig() {
|
|
|
|
|
public ReplicatedServersConfig getReplicatedServersConfig() {
|
|
|
|
|
return replicatedServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void setReplicatedServersConfig(ReplicatedServersConfig replicatedServersConfig) {
|
|
|
|
|
public void setReplicatedServersConfig(ReplicatedServersConfig replicatedServersConfig) {
|
|
|
|
|
this.replicatedServersConfig = replicatedServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -314,11 +314,11 @@ public class Config {
|
|
|
|
|
return singleServerConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected SingleServerConfig getSingleServerConfig() {
|
|
|
|
|
public SingleServerConfig getSingleServerConfig() {
|
|
|
|
|
return singleServerConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void setSingleServerConfig(SingleServerConfig singleConnectionConfig) {
|
|
|
|
|
public void setSingleServerConfig(SingleServerConfig singleConnectionConfig) {
|
|
|
|
|
this.singleServerConfig = singleConnectionConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -343,11 +343,11 @@ public class Config {
|
|
|
|
|
return this.sentinelServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected SentinelServersConfig getSentinelServersConfig() {
|
|
|
|
|
public SentinelServersConfig getSentinelServersConfig() {
|
|
|
|
|
return sentinelServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void setSentinelServersConfig(SentinelServersConfig sentinelConnectionConfig) {
|
|
|
|
|
public void setSentinelServersConfig(SentinelServersConfig sentinelConnectionConfig) {
|
|
|
|
|
this.sentinelServersConfig = sentinelConnectionConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -372,11 +372,11 @@ public class Config {
|
|
|
|
|
return masterSlaveServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected MasterSlaveServersConfig getMasterSlaveServersConfig() {
|
|
|
|
|
public MasterSlaveServersConfig getMasterSlaveServersConfig() {
|
|
|
|
|
return masterSlaveServersConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void setMasterSlaveServersConfig(MasterSlaveServersConfig masterSlaveConnectionConfig) {
|
|
|
|
|
public void setMasterSlaveServersConfig(MasterSlaveServersConfig masterSlaveConnectionConfig) {
|
|
|
|
|
this.masterSlaveServersConfig = masterSlaveConnectionConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -392,6 +392,14 @@ public class Config {
|
|
|
|
|
return singleServerConfig != null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isReplicatedServersConfig() {
|
|
|
|
|
return replicatedServersConfig != null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isMasterSlaveServersConfig() {
|
|
|
|
|
return masterSlaveServersConfig != null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getThreads() {
|
|
|
|
|
return threads;
|
|
|
|
|
}
|
|
|
|
|