public interface ClusterConfiguration
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterConfiguration.CommandsXmitTransport |
static interface |
ClusterConfiguration.MulticastConfiguration |
static interface |
ClusterConfiguration.SyncConfiguration |
static interface |
ClusterConfiguration.TimeoutsConfiguration |
static interface |
ClusterConfiguration.UnicastConfiguration |
| Modifier and Type | Method and Description |
|---|---|
void |
authToken(java.lang.String authToken) |
void |
commandsXmitTransport(ClusterConfiguration.CommandsXmitTransport transport)
Denotes the style of network communication which will be used between
all nodes in cluster to transfer commands from Master to Slaves.
|
void |
currentNodeAddress(Address nodeAddress)
Abstract Address which identifies current node in cluster.
|
void |
currentNodeAddress(java.lang.String host,
java.lang.String port,
java.lang.String nodeId)
The network address of the current node and unique Node ID.
|
void |
currentNodeAddress(java.lang.String host,
java.lang.String port,
java.lang.String nodeId,
IOMode mode)
The network address of the current node and unique Node ID.
|
ClusterConfiguration.SyncConfiguration |
dataSync()
Data Synchronization configurations.
|
ClusterConfiguration.TimeoutsConfiguration |
electionTimeouts()
Timeouts which are used during Leadership Election process, which is started usually by membership
changes, or some unexpected critical situations.
|
ClusterConfiguration.MulticastConfiguration |
multicast()
Multicast configurations, which will be used in case of
commandsXmitTransport(CommandsXmitTransport)
was set to MULTICAST. |
void |
nodesAddresses(java.util.List<Address> nodeAddresses)
List of other parties addresses.
|
void |
nodesInetAddresses(java.util.List<InetAddress> addresses)
List of other parties network addresses.
|
void |
priorityInCluster(int priority)
Priority in cluster, which allows to effectively foresee next elected Masters in case
of failure of previous ones.
|
ClusterConfiguration.UnicastConfiguration |
unicast()
Unicast configrations, which will be used in cast of
commandsXmitTransport(CommandsXmitTransport)
was set to UNICAST. |
void currentNodeAddress(java.lang.String host,
java.lang.String port,
java.lang.String nodeId)
Cluster and ClusterBuffer implementation,
used in current Reveno instance, this host and port will be used for tcp binding,
and Node ID for unique representation of the current node with multicast failover.host - of the current node in clusterport - of the current node in clusternodeId - unqiue node identificator in among clustervoid currentNodeAddress(java.lang.String host,
java.lang.String port,
java.lang.String nodeId,
IOMode mode)
ClusterProvider implementation,
used in current Reveno instance, this host and port will be used for tcp binding,
and Node ID for unique representation of the current node with multicast failover.host - of the current node in clusterport - of the current node in clusternodeId - unqiue node identificator in among clustermode - of IO between other nodesvoid currentNodeAddress(Address nodeAddress)
ClusterProvider
can understand it.nodeAddress - of current node in Reveno clustervoid nodesInetAddresses(java.util.List<InetAddress> addresses)
addresses - void nodesAddresses(java.util.List<Address> nodeAddresses)
nodeAddresses - void commandsXmitTransport(ClusterConfiguration.CommandsXmitTransport transport)
transport - type to be used for commands transfer.ClusterConfiguration.MulticastConfiguration multicast()
commandsXmitTransport(CommandsXmitTransport)
was set to MULTICAST.ClusterConfiguration.UnicastConfiguration unicast()
commandsXmitTransport(CommandsXmitTransport)
was set to UNICAST.ClusterConfiguration.TimeoutsConfiguration electionTimeouts()
ClusterConfiguration.SyncConfiguration dataSync()
void authToken(java.lang.String authToken)
void priorityInCluster(int priority)
priority - of the nodeCopyright © 2015 Artem Dmitriev. All Rights Reserved.