Package io.atomix.cluster
Class ClusterConfig
java.lang.Object
io.atomix.cluster.ClusterConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config
public class ClusterConfig extends Object implements io.atomix.utils.config.Config
Cluster configuration.
-
Constructor Summary
Constructors Constructor Description ClusterConfig() -
Method Summary
Modifier and Type Method Description StringgetClusterId()Returns the cluster identifier.NodeDiscoveryConfiggetDiscoveryConfig()Returns the node discovery provider configuration.MembershipConfiggetMembershipConfig()Deprecated.since 3.1MessagingConfiggetMessagingConfig()Returns the cluster messaging configuration.MulticastConfiggetMulticastConfig()Returns the multicast configuration.MemberConfiggetNodeConfig()Returns the local member configuration.GroupMembershipProtocolConfiggetProtocolConfig()Returns the group membership protocol configuration.ClusterConfigsetClusterId(String clusterId)Sets the cluster identifier.ClusterConfigsetDiscoveryConfig(NodeDiscoveryConfig discoveryConfig)Sets the node discovery provider configuration.ClusterConfigsetMembershipConfig(MembershipConfig membershipConfig)Deprecated.since 3.1ClusterConfigsetMessagingConfig(MessagingConfig messagingConfig)Sets the cluster messaging configuration.ClusterConfigsetMulticastConfig(MulticastConfig multicastConfig)Sets the multicast configuration.ClusterConfigsetNodeConfig(MemberConfig nodeConfig)Sets the local member configuration.ClusterConfigsetProtocolConfig(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
-
getMulticastConfig
Returns the multicast configuration.- Returns:
- the multicast configuration
-
setMulticastConfig
Sets the multicast configuration.- Parameters:
multicastConfig- the multicast configuration- Returns:
- the cluster 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
-
getMembershipConfig
Deprecated.since 3.1Returns the cluster membership configuration.- Returns:
- the cluster membership configuration
-
setMembershipConfig
Deprecated.since 3.1Sets the cluster membership configuration.- Parameters:
membershipConfig- the cluster membership 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
-