Interface ClusterJoinRequest
-
@ParametersAreNonnullByDefault public interface ClusterJoinRequest
A request for a cluster join check- Since:
- 7.17.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.hazelcast.core.HazelcastInstance
getHazelcast()
ClusterJoinMode
getJoinMode()
String
getLocalAddress()
Returns the address of the local node.int
getLocalPort()
Returns the local port.String
getRemoteAddress()
Returns the address of the remote node.int
getRemotePort()
Returns the remote port.com.hazelcast.nio.ObjectDataInput
in()
com.hazelcast.nio.ObjectDataOutput
out()
-
-
-
Method Detail
-
getHazelcast
com.hazelcast.core.HazelcastInstance getHazelcast()
- Returns:
- the Hazelcast instance
-
getJoinMode
ClusterJoinMode getJoinMode()
- Returns:
ClusterJoinMode.CONNECT
if this node initiated the connection to another node orClusterJoinMode.ACCEPT
if the other node initiated the connection
-
getLocalAddress
String getLocalAddress()
Returns the address of the local node.- Returns:
- a string representation of the remote address, can be an IP v4 or v6
-
getLocalPort
int getLocalPort()
Returns the local port.- Returns:
- the port number on the local node
-
getRemoteAddress
String getRemoteAddress()
Returns the address of the remote node.- Returns:
- a string representation of the remote address, can be an IP v4 or v6
-
getRemotePort
int getRemotePort()
Returns the remote port.- Returns:
- the port number on the remote node
-
in
com.hazelcast.nio.ObjectDataInput in()
- Returns:
- input to be read from the remote node
-
out
com.hazelcast.nio.ObjectDataOutput out()
- Returns:
- output to be written to the remote node
-
-