Interface ClusterJoinRequest
-
@ParametersAreNonnullByDefault public interface ClusterJoinRequestA 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.HazelcastInstancegetHazelcast()ClusterJoinModegetJoinMode()StringgetLocalAddress()Returns the address of the local node.intgetLocalPort()Returns the local port.StringgetRemoteAddress()Returns the address of the remote node.intgetRemotePort()Returns the remote port.com.hazelcast.nio.ObjectDataInputin()com.hazelcast.nio.ObjectDataOutputout()
-
-
-
Method Detail
-
getHazelcast
com.hazelcast.core.HazelcastInstance getHazelcast()
- Returns:
- the Hazelcast instance
-
getJoinMode
ClusterJoinMode getJoinMode()
- Returns:
ClusterJoinMode.CONNECTif this node initiated the connection to another node orClusterJoinMode.ACCEPTif 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
-
-