com.hazelcast.config
Class Interfaces

java.lang.Object
  extended by com.hazelcast.config.Interfaces
All Implemented Interfaces:
DataSerializable, Serializable

public class Interfaces
extends Object
implements DataSerializable

See Also:
Serialized Form

Constructor Summary
Interfaces()
           
 
Method Summary
 Interfaces addInterface(String ip)
          Adds a new interface
 Interfaces clear()
          clears all interfaces.
 Collection<String> getInterfaces()
           
 boolean isEnabled()
           
 void readData(DataInput in)
           
 Interfaces setEnabled(boolean enabled)
           
 Interfaces setInterfaces(Collection<String> interfaces)
          Adds a collection of interfaces.
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interfaces

public Interfaces()
Method Detail

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


Copyright 2008-2012 Hazel Ltd. All Rights Reserved.