com.hazelcast.config
Class NetworkConfig

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

public class NetworkConfig
extends Object
implements DataSerializable

See Also:
Serialized Form

Field Summary
static int DEFAULT_PORT
           
 
Constructor Summary
NetworkConfig()
           
 
Method Summary
 NetworkConfig addOutboundPort(int port)
           
 NetworkConfig addOutboundPortDefinition(String portDef)
           
 AsymmetricEncryptionConfig getAsymmetricEncryptionConfig()
           
 Interfaces getInterfaces()
           
 Join getJoin()
           
 Collection<String> getOutboundPortDefinitions()
           
 Collection<Integer> getOutboundPorts()
           
 int getPort()
           
 String getPublicAddress()
           
 SocketInterceptorConfig getSocketInterceptorConfig()
           
 SSLConfig getSSLConfig()
           
 SymmetricEncryptionConfig getSymmetricEncryptionConfig()
           
 boolean isPortAutoIncrement()
           
 boolean isReuseAddress()
           
 void readData(DataInput in)
           
 NetworkConfig setAsymmetricEncryptionConfig(AsymmetricEncryptionConfig asymmetricEncryptionConfig)
           
 NetworkConfig setInterfaces(Interfaces interfaces)
           
 NetworkConfig setJoin(Join join)
           
 NetworkConfig setOutboundPortDefinitions(Collection<String> outboundPortDefs)
           
 NetworkConfig setOutboundPorts(Collection<Integer> outboundPorts)
           
 NetworkConfig setPort(int port)
           
 NetworkConfig setPortAutoIncrement(boolean portAutoIncrement)
           
 void setPublicAddress(String publicAddress)
           
 NetworkConfig setReuseAddress(boolean reuseAddress)
           
 NetworkConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
           
 NetworkConfig setSSLConfig(SSLConfig sslConfig)
           
 NetworkConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)
           
 String toString()
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

NetworkConfig

public NetworkConfig()
Method Detail

getPort

public int getPort()
Returns:
the port

setPort

public NetworkConfig setPort(int port)
Parameters:
port - the port to set

isPortAutoIncrement

public boolean isPortAutoIncrement()
Returns:
the portAutoIncrement

setPortAutoIncrement

public NetworkConfig setPortAutoIncrement(boolean portAutoIncrement)
Parameters:
portAutoIncrement - the portAutoIncrement to set

isReuseAddress

public boolean isReuseAddress()

setReuseAddress

public NetworkConfig setReuseAddress(boolean reuseAddress)

getOutboundPortDefinitions

public Collection<String> getOutboundPortDefinitions()

setOutboundPortDefinitions

public NetworkConfig setOutboundPortDefinitions(Collection<String> outboundPortDefs)

addOutboundPortDefinition

public NetworkConfig addOutboundPortDefinition(String portDef)

getOutboundPorts

public Collection<Integer> getOutboundPorts()

setOutboundPorts

public NetworkConfig setOutboundPorts(Collection<Integer> outboundPorts)

addOutboundPort

public NetworkConfig addOutboundPort(int port)

getInterfaces

public Interfaces getInterfaces()
Returns:
the interfaces

setInterfaces

public NetworkConfig setInterfaces(Interfaces interfaces)
Parameters:
interfaces - the interfaces to set

getJoin

public Join getJoin()
Returns:
the join

setJoin

public NetworkConfig setJoin(Join join)
Parameters:
join - the join to set

getPublicAddress

public String getPublicAddress()

setPublicAddress

public void setPublicAddress(String publicAddress)

setSocketInterceptorConfig

public NetworkConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)

getSocketInterceptorConfig

public SocketInterceptorConfig getSocketInterceptorConfig()

getSymmetricEncryptionConfig

public SymmetricEncryptionConfig getSymmetricEncryptionConfig()

setSymmetricEncryptionConfig

public NetworkConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)

getAsymmetricEncryptionConfig

public AsymmetricEncryptionConfig getAsymmetricEncryptionConfig()

setAsymmetricEncryptionConfig

public NetworkConfig setAsymmetricEncryptionConfig(AsymmetricEncryptionConfig asymmetricEncryptionConfig)

getSSLConfig

public SSLConfig getSSLConfig()

setSSLConfig

public NetworkConfig setSSLConfig(SSLConfig sslConfig)

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Hazelcast, Inc. All Rights Reserved.