com.hazelcast.config
Class TcpIpConfig

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

public class TcpIpConfig
extends Object
implements DataSerializable

See Also:
Serialized Form

Constructor Summary
TcpIpConfig()
           
 
Method Summary
 TcpIpConfig addAddress(Address address)
           
 TcpIpConfig addMember(String member)
           
 TcpIpConfig clear()
           
 List<Address> getAddresses()
           
 int getConnectionTimeoutSeconds()
           
 List<String> getMembers()
           
 String getRequiredMember()
           
 boolean isEnabled()
           
 void readData(DataInput in)
           
 TcpIpConfig setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
           
 TcpIpConfig setEnabled(boolean enabled)
           
 TcpIpConfig setMembers(List<String> members)
           
 TcpIpConfig setRequiredMember(String requiredMember)
           
 String toString()
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpIpConfig

public TcpIpConfig()
Method Detail

addMember

public TcpIpConfig addMember(String member)

clear

public TcpIpConfig clear()

addAddress

public TcpIpConfig addAddress(Address address)

getAddresses

public List<Address> getAddresses()

getConnectionTimeoutSeconds

public int getConnectionTimeoutSeconds()
Returns:
the connectionTimeoutSeconds

setConnectionTimeoutSeconds

public TcpIpConfig setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
Parameters:
connectionTimeoutSeconds - the connectionTimeoutSeconds to set

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

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

getMembers

public List<String> getMembers()
Returns:
the lsMembers

setMembers

public TcpIpConfig setMembers(List<String> members)
Parameters:
members - the members to set

getRequiredMember

public String getRequiredMember()
Returns:
the requiredMember

setRequiredMember

public TcpIpConfig setRequiredMember(String requiredMember)
Parameters:
requiredMember - the requiredMember to set

toString

public String toString()
Overrides:
toString in class Object

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.