com.hazelcast.config
Class MemberGroupConfig

java.lang.Object
  extended by com.hazelcast.config.MemberGroupConfig

public class MemberGroupConfig
extends Object

Contains the configuration for a single member group.

See the PartitionGroupConfig for more information.


Constructor Summary
MemberGroupConfig()
           
 
Method Summary
 MemberGroupConfig addInterface(String ip)
          Adds an interface to the member group.
 MemberGroupConfig clear()
          Removes all interfaces from the member group.
 Collection<String> getInterfaces()
          Gets an unmodifiable collection containing all interfaces.
 MemberGroupConfig setInterfaces(Collection<String> interfaces)
          Sets the interfaces that are part of a group.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemberGroupConfig

public MemberGroupConfig()
Method Detail

addInterface

public MemberGroupConfig addInterface(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:
IllegalArgumentException - if ip is null 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 Collection<String> getInterfaces()
Gets an unmodifiable collection containing all interfaces.

Returns:
the collection of interfaces.
See Also:
setInterfaces(java.util.Collection)

setInterfaces

public MemberGroupConfig setInterfaces(Collection<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.
Returns:
the updated MemberGroupConfig
Throws:
IllegalArgumentException - if interfaces is null.
See Also:
getInterfaces(), clear()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.