Class AdvancedNetworkConfig.MemberNetworkingView
- Enclosing class:
- AdvancedNetworkConfig
NetworkConfig
 Facade used during bootstrap to hide if-logic between the two networking configuration approaches- 
Field SummaryFields inherited from class com.hazelcast.config.NetworkConfigDEFAULT_PORT
- 
Method SummaryModifier and TypeMethodDescriptionaddOutboundPort(int port) addOutboundPortDefinition(String portDef) booleanReturns the currentIcmpFailureDetectorConfig.getJoin()Returns theJoinConfig.intgetPort()Returns the port the Hazelcast member will try to bind on.intReturns the maximum number of ports allowed to try to bind on.Gets theSocketInterceptorConfig.Returns the currentSSLConfig.Gets theSymmetricEncryptionConfig.inthashCode()booleanChecks if a Hazelcast member is allowed find a free port by incrementing the port number when it encounters an occupied port.booleansetIcmpFailureDetectorConfig(IcmpFailureDetectorConfig icmpFailureDetectorConfig) Sets theIcmpFailureDetectorConfig.setInterfaces(InterfacesConfig interfaces) setJoin(JoinConfig join) setMemberAddressProviderConfig(MemberAddressProviderConfig memberAddressProviderConfig) setOutboundPortDefinitions(Collection<String> outboundPortDefs) setOutboundPorts(Collection<Integer> outboundPorts) setPort(int port) Sets the port the Hazelcast member will try to bind on.setPortAutoIncrement(boolean portAutoIncrement) Sets if a Hazelcast member is allowed to find a free port by incrementing the port number when it encounters an occupied port.setPortCount(int portCount) The maximum number of ports allowed to use.setPublicAddress(String publicAddress) Overrides the public address of a member.setReuseAddress(boolean reuseAddress) Sets the reuse address.setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig) Sets theSocketInterceptorConfig.setSSLConfig(SSLConfig sslConfig) Sets theSSLConfig.setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig) Sets theSymmetricEncryptionConfig.toString()Methods inherited from class com.hazelcast.config.NetworkConfiggetMemcacheProtocolConfig, getRestApiConfig, getTpcSocketConfig, setMemcacheProtocolConfig, setRestApiConfig, setTpcSocketConfig
- 
Method Details- 
getPortpublic int getPort()Description copied from class:NetworkConfigReturns the port the Hazelcast member will try to bind on. A port number of 0 will let the system pick up an ephemeral port.- Overrides:
- getPortin class- NetworkConfig
- Returns:
- the port the Hazelcast member will try to bind on
- See Also:
 
- 
setPortDescription copied from class:NetworkConfigSets the port the Hazelcast member will try to bind on.A valid port value is between 0 and 65535. A port number of 0 will let the system pick up an ephemeral port. - Overrides:
- setPortin class- NetworkConfig
- Parameters:
- port- the port the Hazelcast member will try to bind on
- Returns:
- NetworkConfig the updated NetworkConfig
- See Also:
 
- 
getPortCountpublic int getPortCount()Description copied from class:NetworkConfigReturns the maximum number of ports allowed to try to bind on.- Overrides:
- getPortCountin class- NetworkConfig
- Returns:
- the maximum number of ports allowed to try to bind on
- See Also:
 
- 
setPortCountDescription copied from class:NetworkConfigThe maximum number of ports allowed to use.- Overrides:
- setPortCountin class- NetworkConfig
- Parameters:
- portCount- the maximum number of ports allowed to use
- Returns:
- this configuration
- See Also:
 
- 
isPortAutoIncrementpublic boolean isPortAutoIncrement()Description copied from class:NetworkConfigChecks if a Hazelcast member is allowed find a free port by incrementing the port number when it encounters an occupied port.- Overrides:
- isPortAutoIncrementin class- NetworkConfig
- Returns:
- the portAutoIncrement
- See Also:
 
- 
setPortAutoIncrementDescription copied from class:NetworkConfigSets if a Hazelcast member is allowed to find a free port by incrementing the port number when it encounters an occupied port.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 tryNetworkConfig.setPortCount(int).- Overrides:
- setPortAutoIncrementin class- NetworkConfig
- Parameters:
- portAutoIncrement- the portAutoIncrement to set
- Returns:
- the updated NetworkConfig
- See Also:
 
- 
isReuseAddresspublic boolean isReuseAddress()- Overrides:
- isReuseAddressin class- NetworkConfig
 
- 
setReuseAddressDescription copied from class:NetworkConfigSets the reuse address.When 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 - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6421091
- http://www.hsc.fr/ressources/articles/win_net_srv/multiple_bindings.html
 - Overrides:
- setReuseAddressin class- NetworkConfig
 
- 
getOutboundPortDefinitions- Overrides:
- getOutboundPortDefinitionsin class- NetworkConfig
 
- 
setOutboundPortDefinitions- Overrides:
- setOutboundPortDefinitionsin class- NetworkConfig
 
- 
addOutboundPortDefinition- Overrides:
- addOutboundPortDefinitionin class- NetworkConfig
 
- 
getOutboundPorts- Overrides:
- getOutboundPortsin class- NetworkConfig
 
- 
setOutboundPorts- Overrides:
- setOutboundPortsin class- NetworkConfig
 
- 
addOutboundPort- Overrides:
- addOutboundPortin class- NetworkConfig
 
- 
getInterfaces- Overrides:
- getInterfacesin class- NetworkConfig
- Returns:
- the interfaces
 
- 
setInterfaces- Overrides:
- setInterfacesin class- NetworkConfig
- Parameters:
- interfaces- the interfaces to set
 
- 
getJoinDescription copied from class:NetworkConfigReturns theJoinConfig.- Overrides:
- getJoinin class- NetworkConfig
- Returns:
- the join
 
- 
setJoin- Overrides:
- setJoinin class- NetworkConfig
- Parameters:
- join- the join to set
 
- 
getPublicAddress- Overrides:
- getPublicAddressin class- NetworkConfig
 
- 
setPublicAddressDescription copied from class:NetworkConfigOverrides the public address of a member. Behind a NAT, two endpoints may not be able to see/access each other. If both nodes set their public addresses to their defined addresses on NAT, then that way they can communicate with each other. It should be set in the format “host IP address:port number”.- Overrides:
- setPublicAddressin class- NetworkConfig
 
- 
getSocketInterceptorConfigDescription copied from class:NetworkConfigGets theSocketInterceptorConfig. The value can benullif no socket interception is needed.- Overrides:
- getSocketInterceptorConfigin class- NetworkConfig
- Returns:
- the SocketInterceptorConfig
- See Also:
 
- 
setSocketInterceptorConfigDescription copied from class:NetworkConfigSets theSocketInterceptorConfig. The value can benullif no socket interception is needed.- Overrides:
- setSocketInterceptorConfigin class- NetworkConfig
- Parameters:
- socketInterceptorConfig- the SocketInterceptorConfig to set
- Returns:
- the updated NetworkConfig
 
- 
getSymmetricEncryptionConfigDescription copied from class:NetworkConfigGets theSymmetricEncryptionConfig. The value can benullwhich means that no symmetric encryption should be used.- Overrides:
- getSymmetricEncryptionConfigin class- NetworkConfig
- Returns:
- the SymmetricEncryptionConfig
 
- 
setSymmetricEncryptionConfigpublic NetworkConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig) Description copied from class:NetworkConfigSets theSymmetricEncryptionConfig. The value can benullif no symmetric encryption should be used.- Overrides:
- setSymmetricEncryptionConfigin class- NetworkConfig
- Parameters:
- symmetricEncryptionConfig- the SymmetricEncryptionConfig to set
- Returns:
- the updated NetworkConfig
- See Also:
 
- 
getSSLConfigDescription copied from class:NetworkConfigReturns the currentSSLConfig. It is possible that null is returned if no SSLConfig has been set.- Overrides:
- getSSLConfigin class- NetworkConfig
- Returns:
- the SSLConfig
- See Also:
 
- 
setSSLConfigDescription copied from class:NetworkConfigSets theSSLConfig. null value indicates that no SSLConfig should be used.- Overrides:
- setSSLConfigin class- NetworkConfig
- Parameters:
- sslConfig- the SSLConfig
- Returns:
- the updated NetworkConfig
- See Also:
 
- 
getMemberAddressProviderConfig- Overrides:
- getMemberAddressProviderConfigin class- NetworkConfig
 
- 
setMemberAddressProviderConfigpublic NetworkConfig setMemberAddressProviderConfig(MemberAddressProviderConfig memberAddressProviderConfig) - Overrides:
- setMemberAddressProviderConfigin class- NetworkConfig
 
- 
setIcmpFailureDetectorConfigpublic NetworkConfig setIcmpFailureDetectorConfig(IcmpFailureDetectorConfig icmpFailureDetectorConfig) Description copied from class:NetworkConfigSets theIcmpFailureDetectorConfig. The value can benullif this detector isn't needed.- Overrides:
- setIcmpFailureDetectorConfigin class- NetworkConfig
- Parameters:
- icmpFailureDetectorConfig- the IcmpFailureDetectorConfig to set
- Returns:
- the updated NetworkConfig
- See Also:
 
- 
getIcmpFailureDetectorConfigDescription copied from class:NetworkConfigReturns the currentIcmpFailureDetectorConfig. It is possible that null is returned if no IcmpFailureDetectorConfig has been set.- Overrides:
- getIcmpFailureDetectorConfigin class- NetworkConfig
- Returns:
- the IcmpFailureDetectorConfig
- See Also:
 
- 
toString- Overrides:
- toStringin class- NetworkConfig
 
- 
equals- Overrides:
- equalsin class- NetworkConfig
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- NetworkConfig
 
 
-