Package com.hazelcast.config
Class MemberGroupConfig
- java.lang.Object
-
- com.hazelcast.config.MemberGroupConfig
-
public class MemberGroupConfig extends java.lang.Object
Contains the configuration for a single member group.See the
PartitionGroupConfig
for more information.
-
-
Constructor Summary
Constructors Constructor Description MemberGroupConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberGroupConfig
addInterface(java.lang.String ip)
Adds an interface to the member group.MemberGroupConfig
clear()
Removes all interfaces from the member group.boolean
equals(java.lang.Object o)
java.util.Collection<java.lang.String>
getInterfaces()
Gets an unmodifiable collection containing all interfaces.int
hashCode()
MemberGroupConfig
setInterfaces(java.util.Collection<java.lang.String> interfaces)
Sets the interfaces that are part of a group.java.lang.String
toString()
-
-
-
Method Detail
-
addInterface
public MemberGroupConfig addInterface(java.lang.String ip)
Adds an interface to the member group. Duplicate elements are ignored.- Parameters:
ip
- the IP address of the interface- Returns:
- the updated MemberGroupConfig
- Throws:
java.lang.IllegalArgumentException
- if IP isnull
or empty- See Also:
getInterfaces()
,clear()
-
clear
public MemberGroupConfig clear()
Removes all interfaces from the member group.If no members are in the group, the call is ignored.
- Returns:
- the updated MemberGroupConfig
-
getInterfaces
public java.util.Collection<java.lang.String> getInterfaces()
Gets an unmodifiable collection containing all interfaces.- Returns:
- the unmodifiable collection containing all interfaces
- See Also:
setInterfaces(java.util.Collection)
-
setInterfaces
public MemberGroupConfig setInterfaces(java.util.Collection<java.lang.String> interfaces)
Sets the interfaces that are part of a group.If the interfaces is empty, it will have the same effect as calling
clear()
.- Parameters:
interfaces
- the interfaces to set that are part of a group- Returns:
- the updated MemberGroupConfig
- Throws:
java.lang.IllegalArgumentException
- if interfaces isnull
- See Also:
getInterfaces()
,clear()
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-