|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.config.GroupConfig
public final class GroupConfig
Contains the configuration for Hazelcast groups. With groups it is possible to create multiple clusters where each cluster has its own group and doesn't interfere with other clusters.
Field Summary | |
---|---|
static String |
DEFAULT_GROUP_NAME
|
static String |
DEFAULT_GROUP_PASSWORD
|
Constructor Summary | |
---|---|
GroupConfig()
Creates a GroupConfig with default group-name and group-password. |
|
GroupConfig(String name)
Creates a GroupConfig with the given group-name and default group-password |
|
GroupConfig(String name,
String password)
Creates a GroupConfig with the given group-name and group-password |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getName()
Gets the name of the group. |
String |
getPassword()
Gets the password to connec to to the group. |
int |
hashCode()
|
GroupConfig |
setName(String name)
Sets the group name. |
GroupConfig |
setPassword(String password)
Sets the password. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_GROUP_PASSWORD
public static final String DEFAULT_GROUP_NAME
Constructor Detail |
---|
public GroupConfig()
public GroupConfig(String name)
name
- the name of the group
IllegalArgumentException
- if name is null.public GroupConfig(String name, String password)
name
- the name of the grouppassword
- the password of the group
IllegalArgumentException
- if name or password is null.Method Detail |
---|
public String getName()
public GroupConfig setName(String name)
name
- the name to set
IllegalArgumentException
- if name is null.public String getPassword()
public GroupConfig setPassword(String password)
password
- the password to set
IllegalArgumentException
- if password is null.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |