Class TcpDiscoveryHandshakeRequest
- java.lang.Object
-
- org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryAbstractMessage
-
- org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryHandshakeRequest
-
- All Implemented Interfaces:
Serializable
public class TcpDiscoveryHandshakeRequest extends TcpDiscoveryAbstractMessage
Handshake request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryAbstractMessage
CHANGE_TOPOLOGY_FLAG_POS, CLIENT_ACK_FLAG_POS, CLIENT_FLAG_POS, CLIENT_RECON_SUCCESS_FLAG_POS, FORCE_FAIL_FLAG_POS, RESPONDED_FLAG_POS
-
-
Constructor Summary
Constructors Constructor Description TcpDiscoveryHandshakeRequest(UUID creatorNodeId)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchangeTopology()Gets topology change flag.
Truemeans node intent to fail nodes in a ring.voidchangeTopology(UUID prevNodeId)Sets topology change flag and previous node ID to check.UUIDcheckPreviousNodeId()Gets expected previous node ID to check.StringtoString()-
Methods inherited from class org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryAbstractMessage
addFailedNode, client, client, creatorNodeId, equals, failedNodes, failedNodes, force, force, getFlag, hashCode, highPriority, id, pendingIndex, pendingIndex, senderNodeId, senderNodeId, setFlag, topologyVersion, topologyVersion, traceLogLevel, verified, verifierNodeId, verify
-
-
-
-
Constructor Detail
-
TcpDiscoveryHandshakeRequest
public TcpDiscoveryHandshakeRequest(UUID creatorNodeId)
Constructor.- Parameters:
creatorNodeId- Creator node ID.
-
-
Method Detail
-
changeTopology
public boolean changeTopology()
Gets topology change flag.
Truemeans node intent to fail nodes in a ring.- Returns:
- Change topology flag.
-
checkPreviousNodeId
public UUID checkPreviousNodeId()
Gets expected previous node ID to check.- Returns:
- Previous node ID to check.
-
changeTopology
public void changeTopology(UUID prevNodeId)
Sets topology change flag and previous node ID to check.- Parameters:
prevNodeId- If notnull, will set topology check flag and set node ID to check.
-
toString
public String toString()
- Overrides:
toStringin classTcpDiscoveryAbstractMessage
-
-