com.hazelcast.config
Class Interfaces
java.lang.Object
com.hazelcast.config.Interfaces
- All Implemented Interfaces:
- DataSerializable, java.io.Serializable
public class Interfaces
- extends java.lang.Object
- implements DataSerializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(java.lang.String ip)
- Adds a new interface
- Parameters:
ip -
clear
public Interfaces clear()
- clears all interfaces.
getInterfaces
public java.util.Collection<java.lang.String> getInterfaces()
- Returns:
- a read-only collection of interfaces
setInterfaces
public Interfaces setInterfaces(java.util.Collection<java.lang.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(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
writeData in interface DataSerializable
- Throws:
java.io.IOException
readData
public void readData(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readData in interface DataSerializable
- Throws:
java.io.IOException
Copyright .9.4.5; 2008-2011 Hazel Ltd. All Rights Reserved.