|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.TcpIpConfig
public class TcpIpConfig
Contains the configuration for the Tcp/Ip join mechanism.
The Tcp/Ip join mechanism relies on one or more well known members. So when a new member wants to join a cluster, it will try to connect to one of the well known members. If it is able to connect, it will now about all members in the cluster and doesn't rely on these well known members anymore.
Constructor Summary | |
---|---|
TcpIpConfig()
|
Method Summary | |
---|---|
TcpIpConfig |
addMember(String member)
Adds a 'well known' member. |
TcpIpConfig |
clear()
Removes all members. |
int |
getConnectionTimeoutSeconds()
Returns the connection timeout. |
List<String> |
getMembers()
Gets a list of all the well known members. |
String |
getRequiredMember()
Gets the required member. |
boolean |
isEnabled()
Checks if the Tcp/Ip join mechanism is enabled. |
TcpIpConfig |
setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
Sets the connection timeout. |
TcpIpConfig |
setEnabled(boolean enabled)
Enables or disables the Tcp/Ip join mechanism. |
TcpIpConfig |
setMembers(List<String> members)
Sets the well known members. |
TcpIpConfig |
setRequiredMember(String requiredMember)
Sets the required member. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TcpIpConfig()
Method Detail |
---|
public int getConnectionTimeoutSeconds()
setConnectionTimeoutSeconds(int)
public TcpIpConfig setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
connectionTimeoutSeconds
- the connection timeout in seconds.
IllegalArgumentException
- if connectionTimeoutSeconds is smaller than 0.getConnectionTimeoutSeconds()
public boolean isEnabled()
public TcpIpConfig setEnabled(boolean enabled)
enabled
- the enabled to set
public List<String> getMembers()
setMembers(java.util.List)
public TcpIpConfig setMembers(List<String> members)
clear()
.
A member can be a comma separated string, e..g '10.11.12.1,10.11.12.2' which indicates multiple members
are going to be added.
members
- the members to set
IllegalArgumentException
- if members is null.public TcpIpConfig addMember(String member)
member
- the member to add.
IllegalArgumentException
- if member is null or empty.getMembers()
public TcpIpConfig clear()
addMember(String)
public String getRequiredMember()
setRequiredMember(String)
public TcpIpConfig setRequiredMember(String requiredMember)
requiredMember
- the requiredMember to set
getRequiredMember()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |