public class Interfaces extends Object implements DataSerializable
Constructor and Description |
---|
Interfaces() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
void |
writeData(DataOutput out) |
public boolean isEnabled()
public Interfaces setEnabled(boolean enabled)
enabled
- the enabled to setpublic Interfaces addInterface(String ip)
ip
- public Interfaces clear()
public Collection<String> getInterfaces()
public Interfaces setInterfaces(Collection<String> interfaces)
interfaces
- the interfaces to setpublic void writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
Copyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.