public class Cluster extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Cluster.MessagingMode |
Modifier and Type | Field and Description |
---|---|
protected String |
clusterAddress |
protected List<String> |
members |
protected Cluster.MessagingMode |
messagingMode |
protected String |
multicastAddress |
protected Integer |
multicastPort |
protected String |
name |
protected List<Server> |
servers |
protected Integer |
unicastBroadcastChannel |
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
String |
getClusterAddress()
Returns the clusterAddress of the cluster.
|
List<String> |
getMembers()
Returns the list of cluster members names.
|
Cluster.MessagingMode |
getMessagingMode()
Returns the messagingMode of the cluster.
|
String |
getMulticastAddress()
Returns the multicastAddress of the cluster.
|
Integer |
getMulticastPort()
Returns the multicastPort of the cluster.
|
String |
getName()
Returns the name of the cluster.
|
List<Server> |
getServers()
Returns the list of cluster Server objects.
|
Integer |
getUnicastBroadcastChannel()
Returns the unicastBroadcastChannel of the cluster.
|
Cluster |
setClusterAddress(String clusterAddress)
Sets the clusterAddress of the cluster.
|
Cluster |
setMembers(List<String> members)
Sets the list of cluster members names.
|
Cluster |
setMessagingMode(Cluster.MessagingMode messagingMode)
Sets the messagingMode of the cluster.
|
Cluster |
setMulticastAddress(String multicastAddress)
Sets the multicastAddress of the cluster.
|
Cluster |
setMulticastPort(Integer multicastPort)
Sets the multicastPort of the cluster.
|
Cluster |
setName(String name)
Sets the name of the cluster.
|
Cluster |
setServers(List<Server> servers)
Sets the list of Cluster Server objects.
|
Cluster |
setUnicastBroadcastChannel(Integer unicastBroadcastChannel)
Sets the unicastBroadcastChannel of the cluster.
|
protected String name
protected Cluster.MessagingMode messagingMode
protected String clusterAddress
protected Integer unicastBroadcastChannel
protected String multicastAddress
protected Integer multicastPort
public String getClusterAddress()
public List<String> getMembers()
public Cluster.MessagingMode getMessagingMode()
public String getMulticastAddress()
public Integer getMulticastPort()
public String getName()
public List<Server> getServers()
public Integer getUnicastBroadcastChannel()
public Cluster setClusterAddress(String clusterAddress)
clusterAddress
- String containing the cluster address value to setpublic Cluster setMembers(List<String> members)
members
- List of Strings with member names to setpublic Cluster setMessagingMode(Cluster.MessagingMode messagingMode)
messagingMode
- a MessagingMode object to setpublic Cluster setMulticastAddress(String multicastAddress)
multicastAddress
- a String with the multicast address to setpublic Cluster setMulticastPort(Integer multicastPort)
multicastPort
- an Integer with the multicast port to setpublic Cluster setName(String name)
name
- a String value to the name of this clusterpublic Cluster setServers(List<Server> servers)
servers
- a List of Server objects to setpublic Cluster setUnicastBroadcastChannel(Integer unicastBroadcastChannel)
unicastBroadcastChannel
- an Integer with the value of the unicast broadcast channel to set