com.hazelcast.config
Class Interfaces
java.lang.Object
  
com.hazelcast.config.Interfaces
- All Implemented Interfaces: 
 - DataSerializable, Serializable
 
public class Interfaces
- extends Object
- implements DataSerializable
  
- See Also:
 - Serialized Form
 
 
 
 
Interfaces
public Interfaces()
isEnabled
public boolean isEnabled()
 
- Returns:
 - the enabled
 
 
setEnabled
public Interfaces setEnabled(boolean enabled)
 
- Parameters:
 enabled - the enabled to set
 
addInterface
public Interfaces addInterface(String ip)
- Adds a new interface
 
- Parameters:
 ip - 
 
 
clear
public Interfaces clear()
- clears all interfaces.
 
 
 
getInterfaces
public Collection<String> getInterfaces()
 
- Returns:
 - a read-only collection of interfaces
 
 
setInterfaces
public Interfaces setInterfaces(Collection<String> interfaces)
- Adds a collection of interfaces.
 Clears the current collection and then adds all entries of new collection.
 
- Parameters:
 interfaces - the interfaces to set
 
 
writeData
public void writeData(DataOutput out)
               throws IOException
- Specified by:
 writeData in interface DataSerializable
 
- Throws:
 IOException
 
readData
public void readData(DataInput in)
              throws IOException
- Specified by:
 readData in interface DataSerializable
 
- Throws:
 IOException
 
toString
public String toString()
- Overrides:
 toString in class Object
 
 
Copyright © 2008-2012 Hazelcast, Inc. All Rights Reserved.