|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.NetworkConfig
public class NetworkConfig
Contains configuration for Network.
Field Summary | |
---|---|
static int |
DEFAULT_PORT
Default value of port number |
Constructor Summary | |
---|---|
NetworkConfig()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PORT
Constructor Detail |
---|
public NetworkConfig()
Method Detail |
---|
public int getPort()
setPort(int)
public NetworkConfig setPort(int port)
port
- the port to bind on.
getPort()
,
for more information.
public int getPortCount()
setPortCount(int)
,
for more information.
public void setPortCount(int portCount)
portCount
- the maximum number of ports allowed to use.for more information.
public boolean isPortAutoIncrement()
setPortAutoIncrement(boolean)
public NetworkConfig setPortAutoIncrement(boolean portAutoIncrement)
setPort(int)
and if the port is not free, the member will not start and throw an exception.
If this value is set to true, Hazelcast will start at the port specified by setPort(int)
and will try
until it finds a free port, or until it runs out of ports to try setPortCount(int)
.
portAutoIncrement
- the portAutoIncrement to set
isPortAutoIncrement()
,
setPortCount(int)
,
setPort(int)
public boolean isReuseAddress()
public NetworkConfig setReuseAddress(boolean reuseAddress)
public Collection<String> getOutboundPortDefinitions()
public NetworkConfig setOutboundPortDefinitions(Collection<String> outboundPortDefs)
public NetworkConfig addOutboundPortDefinition(String portDef)
public Collection<Integer> getOutboundPorts()
public NetworkConfig setOutboundPorts(Collection<Integer> outboundPorts)
public NetworkConfig addOutboundPort(int port)
public InterfacesConfig getInterfaces()
public NetworkConfig setInterfaces(InterfacesConfig interfaces)
interfaces
- the interfaces to setpublic JoinConfig getJoin()
JoinConfig
.
public NetworkConfig setJoin(JoinConfig join)
join
- the join to setpublic String getPublicAddress()
public NetworkConfig setPublicAddress(String publicAddress)
public SocketInterceptorConfig getSocketInterceptorConfig()
SocketInterceptorConfig
. The value can be null if no socket interception is needed.
setSocketInterceptorConfig(SocketInterceptorConfig)
public NetworkConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
SocketInterceptorConfig
. The value can be null if no socket interception is needed.
socketInterceptorConfig
- the SocketInterceptorConfig
public SymmetricEncryptionConfig getSymmetricEncryptionConfig()
SymmetricEncryptionConfig
. The value can be null which means that no symmetric encryption should
be used.
public NetworkConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)
SymmetricEncryptionConfig
. The value can be null if no symmetric encryption should be used.
symmetricEncryptionConfig
- the SymmetricEncryptionConfig
getSymmetricEncryptionConfig()
public SSLConfig getSSLConfig()
SSLConfig
. It is possible that null is returned if no SSLConfig has been
set.
setSSLConfig(SSLConfig)
public NetworkConfig setSSLConfig(SSLConfig sslConfig)
SSLConfig
. null value indicates that no SSLConfig should be used.
sslConfig
- the SSLConfig.
getSSLConfig()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |