Class RestServerEndpointConfig
- All Implemented Interfaces:
NamedConfig
RestApiConfig
- Since:
- 3.12
- See Also:
-
Field Summary
Fields inherited from class com.hazelcast.config.ServerSocketEndpointConfig
DEFAULT_PORT, PORT_AUTO_INCREMENT
Fields inherited from class com.hazelcast.config.EndpointConfig
DEFAULT_SOCKET_CONNECT_TIMEOUT_SECONDS, DEFAULT_SOCKET_KEEP_COUNT, DEFAULT_SOCKET_KEEP_IDLE_SECONDS, DEFAULT_SOCKET_KEEP_INTERVAL_SECONDS, DEFAULT_SOCKET_LINGER_SECONDS, DEFAULT_SOCKET_RECEIVE_BUFFER_SIZE_KB, DEFAULT_SOCKET_SEND_BUFFER_SIZE_KB, interfaces, name, protocolType, socketInterceptorConfig, sslConfig, symmetricEncryptionConfig
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionaddOutboundPort
(int port) Deprecated, for removal: This API element is subject to removal in a future version.addOutboundPortDefinition
(String portDef) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Disables all REST endpoint groups.disableGroups
(RestEndpointGroup... endpointGroups) Deprecated, for removal: This API element is subject to removal in a future version.Disables provided REST endpoint groups.Deprecated, for removal: This API element is subject to removal in a future version.Enables all REST endpoint groups.enableGroups
(RestEndpointGroup... endpointGroups) Deprecated, for removal: This API element is subject to removal in a future version.Enables provided REST endpoint groups.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns a not-null
set of enabled REST endpoint groups.final com.hazelcast.instance.ProtocolType
Deprecated, for removal: This API element is subject to removal in a future version.com.hazelcast.instance.EndpointQualifier
Deprecated, for removal: This API element is subject to removal in a future version.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Return true if the REST API is enabled and at least one REST endpoint group is allowed.boolean
isGroupEnabled
(RestEndpointGroup group) Deprecated, for removal: This API element is subject to removal in a future version.Checks if given REST endpoint group is enabled.setEnabledGroups
(Collection<RestEndpointGroup> groups) Deprecated, for removal: This API element is subject to removal in a future version.setInterfaces
(InterfacesConfig interfaces) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.setOutboundPortDefinitions
(Collection<String> outboundPortDefs) Deprecated, for removal: This API element is subject to removal in a future version.setOutboundPorts
(Collection<Integer> outboundPorts) Deprecated, for removal: This API element is subject to removal in a future version.setPort
(int port) Deprecated, for removal: This API element is subject to removal in a future version.Sets the port the Hazelcast member will try to bind on.setPortAutoIncrement
(boolean portAutoIncrement) Deprecated, for removal: This API element is subject to removal in a future version.Sets if a Hazelcast member is allowed to find a free port by incrementing the port number when it encounters an occupied port.setPublicAddress
(String publicAddress) Deprecated, for removal: This API element is subject to removal in a future version.Overrides the public address of a member.setReuseAddress
(boolean reuseAddress) Deprecated, for removal: This API element is subject to removal in a future version.Sets the reuse address.setSocketBufferDirect
(boolean socketBufferDirect) Deprecated, for removal: This API element is subject to removal in a future version.setSocketConnectTimeoutSeconds
(int socketConnectTimeoutSeconds) Deprecated, for removal: This API element is subject to removal in a future version.setSocketInterceptorConfig
(SocketInterceptorConfig socketInterceptorConfig) Deprecated, for removal: This API element is subject to removal in a future version.Sets theSocketInterceptorConfig
.setSocketKeepAlive
(boolean socketKeepAlive) Deprecated, for removal: This API element is subject to removal in a future version.setSocketKeepCount
(int socketKeepCount) Deprecated, for removal: This API element is subject to removal in a future version.Set the maximum number of TCP keep-alive probes to send before giving up and closing the connection if no response is obtained from the other side.setSocketKeepIdleSeconds
(int socketKeepIdleSeconds) Deprecated, for removal: This API element is subject to removal in a future version.Set the number of seconds a connection needs to be idle before TCP begins sending out keep-alive probes.setSocketKeepIntervalSeconds
(int socketKeepIntervalSeconds) Deprecated, for removal: This API element is subject to removal in a future version.Set the number of seconds between keep-alive probes.setSocketLingerSeconds
(int socketLingerSeconds) Deprecated, for removal: This API element is subject to removal in a future version.setSocketRcvBufferSizeKb
(int socketRcvBufferSizeKb) Deprecated, for removal: This API element is subject to removal in a future version.setSocketSendBufferSizeKb
(int socketSendBufferSizeKb) Deprecated, for removal: This API element is subject to removal in a future version.setSocketTcpNoDelay
(boolean socketTcpNoDelay) Deprecated, for removal: This API element is subject to removal in a future version.setSSLConfig
(SSLConfig sslConfig) Deprecated, for removal: This API element is subject to removal in a future version.Sets theSSLConfig
. null value indicates that no SSLConfig should be used.setSymmetricEncryptionConfig
(SymmetricEncryptionConfig symmetricEncryptionConfig) Deprecated, for removal: This API element is subject to removal in a future version.Sets theSymmetricEncryptionConfig
.setTpcSocketConfig
(TpcSocketConfig tpcSocketConfig) Deprecated, for removal: This API element is subject to removal in a future version.Sets the TpcSocketConfig.toString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.hazelcast.config.ServerSocketEndpointConfig
getPort, getPortCount, getPublicAddress, isPortAutoIncrement, isReuseAddress, setPortCount, setProtocolType
Methods inherited from class com.hazelcast.config.EndpointConfig
getInterfaces, getName, getOutboundPortDefinitions, getOutboundPorts, getSocketConnectTimeoutSeconds, getSocketInterceptorConfig, getSocketKeepCount, getSocketKeepIdleSeconds, getSocketKeepIntervalSeconds, getSocketLingerSeconds, getSocketRcvBufferSizeKb, getSocketSendBufferSizeKb, getSSLConfig, getSymmetricEncryptionConfig, getTpcSocketConfig, isSocketBufferDirect, isSocketKeepAlive, isSocketTcpNoDelay
-
Constructor Details
-
RestServerEndpointConfig
public RestServerEndpointConfig()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getProtocolType
public final com.hazelcast.instance.ProtocolType getProtocolType()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getProtocolType
in classEndpointConfig
-
getQualifier
public com.hazelcast.instance.EndpointQualifier getQualifier()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getQualifier
in classEndpointConfig
-
enableAllGroups
Deprecated, for removal: This API element is subject to removal in a future version.Enables all REST endpoint groups. -
enableGroups
Deprecated, for removal: This API element is subject to removal in a future version.Enables provided REST endpoint groups. It doesn't replace already enabled groups. -
disableAllGroups
Deprecated, for removal: This API element is subject to removal in a future version.Disables all REST endpoint groups. -
disableGroups
Deprecated, for removal: This API element is subject to removal in a future version.Disables provided REST endpoint groups. -
isEnabledAndNotEmpty
public boolean isEnabledAndNotEmpty()Deprecated, for removal: This API element is subject to removal in a future version.Return true if the REST API is enabled and at least one REST endpoint group is allowed. -
getEnabledGroups
Deprecated, for removal: This API element is subject to removal in a future version.Returns a not-null
set of enabled REST endpoint groups. -
isGroupEnabled
Deprecated, for removal: This API element is subject to removal in a future version.Checks if given REST endpoint group is enabled. It can returntrue
even if the REST API itself is disabled. -
setEnabledGroups
Deprecated, for removal: This API element is subject to removal in a future version. -
setPublicAddress
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ServerSocketEndpointConfig
Overrides 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:
setPublicAddress
in classServerSocketEndpointConfig
-
setPort
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ServerSocketEndpointConfig
Sets 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:
setPort
in classServerSocketEndpointConfig
- Parameters:
port
- the port the Hazelcast member will try to bind on- Returns:
- NetworkConfig the updated NetworkConfig
- See Also:
-
setPortAutoIncrement
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ServerSocketEndpointConfig
Sets 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
ServerSocketEndpointConfig.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
ServerSocketEndpointConfig.setPort(int)
and will try until it finds a free port, or until it runs out of ports to tryServerSocketEndpointConfig.setPortCount(int)
.- Overrides:
setPortAutoIncrement
in classServerSocketEndpointConfig
- Parameters:
portAutoIncrement
- the portAutoIncrement to set- Returns:
- the updated NetworkConfig
- See Also:
-
setReuseAddress
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ServerSocketEndpointConfig
Sets 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:
setReuseAddress
in classServerSocketEndpointConfig
-
setName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setName
in interfaceNamedConfig
- Overrides:
setName
in classServerSocketEndpointConfig
-
setOutboundPortDefinitions
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setOutboundPortDefinitions
in classServerSocketEndpointConfig
-
setOutboundPorts
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setOutboundPorts
in classServerSocketEndpointConfig
-
setInterfaces
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setInterfaces
in classServerSocketEndpointConfig
- Parameters:
interfaces
- the interfaces to set
-
setSocketBufferDirect
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketBufferDirect
in classServerSocketEndpointConfig
-
setSocketKeepAlive
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketKeepAlive
in classServerSocketEndpointConfig
-
setSocketTcpNoDelay
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketTcpNoDelay
in classServerSocketEndpointConfig
-
setSocketSendBufferSizeKb
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketSendBufferSizeKb
in classServerSocketEndpointConfig
-
setSocketRcvBufferSizeKb
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketRcvBufferSizeKb
in classServerSocketEndpointConfig
-
setSocketLingerSeconds
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketLingerSeconds
in classServerSocketEndpointConfig
-
setSocketConnectTimeoutSeconds
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSocketConnectTimeoutSeconds
in classServerSocketEndpointConfig
-
setSocketInterceptorConfig
public RestServerEndpointConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Sets theSocketInterceptorConfig
. The value can benull
if no socket interception is needed.- Overrides:
setSocketInterceptorConfig
in classServerSocketEndpointConfig
- Parameters:
socketInterceptorConfig
- the SocketInterceptorConfig to set- Returns:
- the updated NetworkConfig
-
setSSLConfig
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Sets theSSLConfig
. null value indicates that no SSLConfig should be used.- Overrides:
setSSLConfig
in classServerSocketEndpointConfig
- Parameters:
sslConfig
- the SSLConfig- Returns:
- the updated NetworkConfig
- See Also:
-
setTpcSocketConfig
@Beta @Nonnull public RestServerEndpointConfig setTpcSocketConfig(@Nonnull TpcSocketConfig tpcSocketConfig) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Sets the TpcSocketConfig. Can't return null.- Overrides:
setTpcSocketConfig
in classServerSocketEndpointConfig
- Parameters:
tpcSocketConfig
- Tpc socket config to set- Returns:
- this endpoint config
- See Also:
-
setSymmetricEncryptionConfig
public RestServerEndpointConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Sets theSymmetricEncryptionConfig
. The value can benull
if no symmetric encryption should be used.- Overrides:
setSymmetricEncryptionConfig
in classServerSocketEndpointConfig
- Parameters:
symmetricEncryptionConfig
- the SymmetricEncryptionConfig to set- Returns:
- the updated NetworkConfig
- See Also:
-
addOutboundPortDefinition
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addOutboundPortDefinition
in classEndpointConfig
-
addOutboundPort
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addOutboundPort
in classEndpointConfig
-
setSocketKeepIdleSeconds
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Set the number of seconds a connection needs to be idle before TCP begins sending out keep-alive probes. Valid values are 1 to 32767. This option is only applicable whenkeep alive is true
. Requires a recent JDK 8, JDK 11 or greater version that includes the required JDK support.- Overrides:
setSocketKeepIdleSeconds
in classServerSocketEndpointConfig
- See Also:
-
setSocketKeepIntervalSeconds
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Set the number of seconds between keep-alive probes. Notice that this is the number of seconds between probes after the initialkeep-alive idle time
has passed. Valid values are 1 to 32767. This option is only applicable whenkeep alive is true
. Requires a recent JDK 8, JDK 11 or greater version that includes the required JDK support.- Overrides:
setSocketKeepIntervalSeconds
in classServerSocketEndpointConfig
- See Also:
-
setSocketKeepCount
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointConfig
Set the maximum number of TCP keep-alive probes to send before giving up and closing the connection if no response is obtained from the other side. Valid values are 1 to 127. This option is only applicable whenkeep alive is true
. Requires a recent JDK 8, JDK 11 or greater version that includes the required JDK support.- Overrides:
setSocketKeepCount
in classServerSocketEndpointConfig
- See Also:
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classServerSocketEndpointConfig
-
equals
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
equals
in classServerSocketEndpointConfig
-
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
hashCode
in classServerSocketEndpointConfig
-