public abstract class TcpDiscoveryAbstractMessage extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CLIENT_ACK_FLAG_POS |
protected static int |
CLIENT_FLAG_POS |
protected static int |
CLIENT_RECON_SUCCESS_FLAG_POS |
protected static int |
RESPONDED_FLAG_POS |
| Modifier | Constructor and Description |
|---|---|
protected |
TcpDiscoveryAbstractMessage()
Default no-arg constructor for
Externalizable interface. |
protected |
TcpDiscoveryAbstractMessage(TcpDiscoveryAbstractMessage msg) |
protected |
TcpDiscoveryAbstractMessage(UUID creatorNodeId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFailedNode(UUID nodeId)
Adds node ID to the failed nodes list.
|
boolean |
client()
Get client node flag.
|
void |
client(boolean client)
Sets client node flag.
|
UUID |
creatorNodeId()
Gets creator node.
|
boolean |
equals(Object obj) |
Collection<UUID> |
failedNodes() |
void |
failedNodes(Set<UUID> failedNodes) |
protected boolean |
getFlag(int pos) |
int |
hashCode() |
boolean |
highPriority() |
IgniteUuid |
id()
Gets message ID.
|
short |
pendingIndex() |
void |
pendingIndex(short pendingIdx) |
UUID |
senderNodeId()
Gets sender node ID.
|
void |
senderNodeId(UUID sndNodeId)
Sets sender node ID.
|
protected void |
setFlag(int pos,
boolean val) |
long |
topologyVersion()
Gets topology version.
|
void |
topologyVersion(long topVer)
Sets topology version.
|
String |
toString() |
boolean |
verified()
Checks whether message is verified.
|
UUID |
verifierNodeId()
Gets verifier node ID.
|
void |
verify(UUID verifierNodeId)
Verifies the message and stores verifier ID.
|
protected static final int CLIENT_FLAG_POS
protected static final int RESPONDED_FLAG_POS
protected static final int CLIENT_RECON_SUCCESS_FLAG_POS
protected static final int CLIENT_ACK_FLAG_POS
protected TcpDiscoveryAbstractMessage()
Externalizable interface.protected TcpDiscoveryAbstractMessage(UUID creatorNodeId)
creatorNodeId - Creator node ID.protected TcpDiscoveryAbstractMessage(TcpDiscoveryAbstractMessage msg)
msg - Message.public UUID creatorNodeId()
public IgniteUuid id()
public UUID senderNodeId()
public void senderNodeId(UUID sndNodeId)
sndNodeId - Sender node ID.public boolean verified()
true if message was verified.public UUID verifierNodeId()
public void verify(UUID verifierNodeId)
verifierNodeId - Verifier node ID.public long topologyVersion()
public void topologyVersion(long topVer)
topVer - Topology version.public boolean client()
public void client(boolean client)
client - Client node flag.public short pendingIndex()
public void pendingIndex(short pendingIdx)
pendingIdx - Pending message index.protected boolean getFlag(int pos)
pos - Flag position.protected void setFlag(int pos,
boolean val)
pos - Flag position.val - Flag value.public boolean highPriority()
true if message must be added to head of queue.public void addFailedNode(UUID nodeId)
nodeId - Node ID.public void failedNodes(@Nullable Set<UUID> failedNodes)
failedNodes - Failed nodes.@Nullable public Collection<UUID> failedNodes()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016