Package com.hazelcast.config
Class InterfacesConfig
- java.lang.Object
-
- com.hazelcast.config.InterfacesConfig
-
public class InterfacesConfig extends java.lang.Object
Contains the configuration for Interfaces.
-
-
Constructor Summary
Constructors Constructor Description InterfacesConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterfacesConfig
addInterface(java.lang.String ip)
Adds a new interfaceInterfacesConfig
clear()
clears all interfaces.boolean
equals(java.lang.Object o)
java.util.Collection<java.lang.String>
getInterfaces()
int
hashCode()
boolean
isEnabled()
InterfacesConfig
setEnabled(boolean enabled)
InterfacesConfig
setInterfaces(java.util.Collection<java.lang.String> interfaces)
Adds a collection of interfaces.java.lang.String
toString()
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Returns:
true
if the interface is enabled,false
otherwise
-
setEnabled
public InterfacesConfig setEnabled(boolean enabled)
- Parameters:
enabled
- the enabled interface to set
-
addInterface
public InterfacesConfig addInterface(java.lang.String ip)
Adds a new interface- Parameters:
ip
- the added interface
-
clear
public InterfacesConfig clear()
clears all interfaces.
-
getInterfaces
public java.util.Collection<java.lang.String> getInterfaces()
- Returns:
- a read-only collection of interfaces
-
setInterfaces
public InterfacesConfig 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
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-