public final class GroupConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP_NAME
Default group name
|
static String |
DEFAULT_GROUP_PASSWORD
Default group password
|
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final String DEFAULT_GROUP_PASSWORD
public static final String DEFAULT_GROUP_NAME
public GroupConfig()
public GroupConfig(String name)
name
- the name of the groupIllegalArgumentException
- if name is null.public GroupConfig(String name, String password)
name
- the name of the grouppassword
- the password of the groupIllegalArgumentException
- if name or password is null.public String getName()
public GroupConfig setName(String name)
name
- the name to setIllegalArgumentException
- if name is null.public String getPassword()
public GroupConfig setPassword(String password)
password
- the password to setIllegalArgumentException
- if password is null.Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.