com.hazelcast.config
Class InterfacesConfig

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

public class InterfacesConfig
extends Object


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

Constructor Detail

InterfacesConfig

public InterfacesConfig()
Method Detail

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public InterfacesConfig setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

addInterface

public InterfacesConfig addInterface(String ip)
Adds a new interface

Parameters:
ip -

clear

public InterfacesConfig clear()
clears all interfaces.


getInterfaces

public Collection<String> getInterfaces()
Returns:
a read-only collection of interfaces

setInterfaces

public InterfacesConfig 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

toString

public String toString()
Overrides:
toString in class Object


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