Package io.atomix.cluster
Class ClusterConfig
java.lang.Object
io.atomix.cluster.ClusterConfig
- All Implemented Interfaces:
Config
Cluster configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the cluster identifier.Returns the node discovery provider configuration.Returns the cluster messaging configuration.Returns the local member configuration.Returns the group membership protocol configuration.setClusterId(String clusterId) Sets the cluster identifier.setDiscoveryConfig(NodeDiscoveryConfig discoveryConfig) Sets the node discovery provider configuration.setMessagingConfig(MessagingConfig messagingConfig) Sets the cluster messaging configuration.setNodeConfig(MemberConfig nodeConfig) Sets the local member configuration.setProtocolConfig(GroupMembershipProtocolConfig protocolConfig) Sets the group membership protocol configuration.
-
Constructor Details
-
ClusterConfig
public ClusterConfig()
-
-
Method Details
-
getClusterId
Returns the cluster identifier.- Returns:
- the cluster identifier
-
setClusterId
Sets the cluster identifier.- Parameters:
clusterId- the cluster identifier- Returns:
- the cluster configuration
-
getNodeConfig
Returns the local member configuration.- Returns:
- the local member configuration
-
setNodeConfig
Sets the local member configuration.- Parameters:
nodeConfig- the local member configuration- Returns:
- the cluster configuration
-
getDiscoveryConfig
Returns the node discovery provider configuration.- Returns:
- the node discovery provider configuration
-
setDiscoveryConfig
Sets the node discovery provider configuration.- Parameters:
discoveryConfig- the node discovery provider configuration- Returns:
- the node configuration
-
getProtocolConfig
Returns the group membership protocol configuration.- Returns:
- the group membership protocol configuration
-
setProtocolConfig
Sets the group membership protocol configuration.- Parameters:
protocolConfig- the group membership protocol configuration- Returns:
- the cluster configuration
-
getMessagingConfig
Returns the cluster messaging configuration.- Returns:
- the messaging configuration
-
setMessagingConfig
Sets the cluster messaging configuration.- Parameters:
messagingConfig- the messaging configuration- Returns:
- the cluster configuration
-