public static class AdvancedNetworkConfig.MemberNetworkingView extends NetworkConfig
NetworkConfig
Facade used during bootstrap to hide if-logic between the two networking configuration approachesDEFAULT_PORTgetMemcacheProtocolConfig, getRestApiConfig, setMemcacheProtocolConfig, setRestApiConfigpublic int getPort()
NetworkConfiggetPort in class NetworkConfigNetworkConfig.setPort(int)public NetworkConfig setPort(int port)
NetworkConfigsetPort in class NetworkConfigport - the port the Hazelcast member will try to bind onNetworkConfig.getPort(),
for more informationpublic int getPortCount()
NetworkConfiggetPortCount in class NetworkConfigNetworkConfig.setPortCount(int),
for more informationpublic NetworkConfig setPortCount(int portCount)
NetworkConfigsetPortCount in class NetworkConfigportCount - the maximum number of ports allowed to usefor more informationpublic boolean isPortAutoIncrement()
NetworkConfigisPortAutoIncrement in class NetworkConfigNetworkConfig.setPortAutoIncrement(boolean)public NetworkConfig setPortAutoIncrement(boolean portAutoIncrement)
NetworkConfig
If you explicitly want to control the port a Hazelcast member is going to use, you probably want to set
portAutoincrement to false. In this case, the Hazelcast member is going to try the port NetworkConfig.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 NetworkConfig.setPort(int) and will try
until it finds a free port, or until it runs out of ports to try NetworkConfig.setPortCount(int).
setPortAutoIncrement in class NetworkConfigportAutoIncrement - the portAutoIncrement to setNetworkConfig.isPortAutoIncrement(),
NetworkConfig.setPortCount(int),
NetworkConfig.setPort(int)public boolean isReuseAddress()
isReuseAddress in class NetworkConfigpublic NetworkConfig setReuseAddress(boolean reuseAddress)
NetworkConfigWhen should setReuseAddress(true) be used?
When the member is shutdown, the server socket port will be in TIME_WAIT state for the next 2 minutes or so. If you start the member right after shutting it down, you may not be able to bind to the same port because it is in TIME_WAIT state. if you set reuseAddress=true then TIME_WAIT will be ignored and you will be able to bind to the same port again.
This property should not be set to true on the Windows platform: see
setReuseAddress in class NetworkConfigpublic Collection<String> getOutboundPortDefinitions()
getOutboundPortDefinitions in class NetworkConfigpublic NetworkConfig setOutboundPortDefinitions(Collection<String> outboundPortDefs)
setOutboundPortDefinitions in class NetworkConfigpublic NetworkConfig addOutboundPortDefinition(String portDef)
addOutboundPortDefinition in class NetworkConfigpublic Collection<Integer> getOutboundPorts()
getOutboundPorts in class NetworkConfigpublic NetworkConfig setOutboundPorts(Collection<Integer> outboundPorts)
setOutboundPorts in class NetworkConfigpublic NetworkConfig addOutboundPort(int port)
addOutboundPort in class NetworkConfigpublic InterfacesConfig getInterfaces()
getInterfaces in class NetworkConfigpublic NetworkConfig setInterfaces(InterfacesConfig interfaces)
setInterfaces in class NetworkConfiginterfaces - the interfaces to setpublic JoinConfig getJoin()
NetworkConfigJoinConfig.getJoin in class NetworkConfigpublic NetworkConfig setJoin(JoinConfig join)
setJoin in class NetworkConfigjoin - the join to setpublic String getPublicAddress()
getPublicAddress in class NetworkConfigpublic NetworkConfig setPublicAddress(String publicAddress)
NetworkConfigsetPublicAddress in class NetworkConfigpublic SocketInterceptorConfig getSocketInterceptorConfig()
NetworkConfigSocketInterceptorConfig. The value can be null if no socket interception is needed.getSocketInterceptorConfig in class NetworkConfigNetworkConfig.setSocketInterceptorConfig(SocketInterceptorConfig)public NetworkConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
NetworkConfigSocketInterceptorConfig. The value can be null if no socket interception is needed.setSocketInterceptorConfig in class NetworkConfigsocketInterceptorConfig - the SocketInterceptorConfig to setpublic SymmetricEncryptionConfig getSymmetricEncryptionConfig()
NetworkConfigSymmetricEncryptionConfig. The value can be null which means that no symmetric encryption should
be used.getSymmetricEncryptionConfig in class NetworkConfigpublic NetworkConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)
NetworkConfigSymmetricEncryptionConfig. The value can be null if no symmetric encryption should be used.setSymmetricEncryptionConfig in class NetworkConfigsymmetricEncryptionConfig - the SymmetricEncryptionConfig to setNetworkConfig.getSymmetricEncryptionConfig()public SSLConfig getSSLConfig()
NetworkConfigSSLConfig. It is possible that null is returned if no SSLConfig has been set.getSSLConfig in class NetworkConfigNetworkConfig.setSSLConfig(SSLConfig)public NetworkConfig setSSLConfig(SSLConfig sslConfig)
NetworkConfigSSLConfig. null value indicates that no SSLConfig should be used.setSSLConfig in class NetworkConfigsslConfig - the SSLConfigNetworkConfig.getSSLConfig()public MemberAddressProviderConfig getMemberAddressProviderConfig()
getMemberAddressProviderConfig in class NetworkConfigpublic NetworkConfig setMemberAddressProviderConfig(MemberAddressProviderConfig memberAddressProviderConfig)
setMemberAddressProviderConfig in class NetworkConfigpublic NetworkConfig setIcmpFailureDetectorConfig(IcmpFailureDetectorConfig icmpFailureDetectorConfig)
NetworkConfigIcmpFailureDetectorConfig. The value can be null if this detector isn't needed.setIcmpFailureDetectorConfig in class NetworkConfigicmpFailureDetectorConfig - the IcmpFailureDetectorConfig to setNetworkConfig.getIcmpFailureDetectorConfig()public IcmpFailureDetectorConfig getIcmpFailureDetectorConfig()
NetworkConfigIcmpFailureDetectorConfig. It is possible that null is returned if no
IcmpFailureDetectorConfig has been set.getIcmpFailureDetectorConfig in class NetworkConfigNetworkConfig.setIcmpFailureDetectorConfig(IcmpFailureDetectorConfig)public String toString()
toString in class NetworkConfigCopyright © 2022 Hazelcast, Inc.. All rights reserved.