Package org.teamapps.universaldb.cluster
Class ClusterConfig
- java.lang.Object
-
- org.teamapps.universaldb.cluster.ClusterConfig
-
public class ClusterConfig extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClusterConfig(java.lang.String clusterSecret, java.util.List<ClusterNodeConfig> clusterNodes, int localNodeId)
-
Method Summary
Modifier and Type Method Description ClusterConfigcopy(int localNodeId)java.util.List<ClusterNodeConfig>getClusterNodes()java.lang.StringgetClusterSecret()ClusterNodeConfiggetLocalNode()intgetLocalNodeId()java.util.List<ClusterNodeConfig>getRemoteNodes()
-
-
-
Constructor Detail
-
ClusterConfig
public ClusterConfig(java.lang.String clusterSecret, java.util.List<ClusterNodeConfig> clusterNodes, int localNodeId)
-
-
Method Detail
-
copy
public ClusterConfig copy(int localNodeId)
-
getClusterNodes
public java.util.List<ClusterNodeConfig> getClusterNodes()
-
getRemoteNodes
public java.util.List<ClusterNodeConfig> getRemoteNodes()
-
getLocalNode
public ClusterNodeConfig getLocalNode()
-
getClusterSecret
public java.lang.String getClusterSecret()
-
getLocalNodeId
public int getLocalNodeId()
-
-