public abstract class TcpDiscoveryAbstractMessage extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static int |
CHANGE_TOPOLOGY_FLAG_POS |
protected static int |
CLIENT_ACK_FLAG_POS |
protected static int |
CLIENT_FLAG_POS |
protected static int |
CLIENT_RECON_SUCCESS_FLAG_POS |
protected static int |
COMPRESS_DATA_PACKET |
protected static int |
FORCE_FAIL_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) |
@Nullable Collection<UUID> |
failedNodes() |
void |
failedNodes(@Nullable Set<UUID> failedNodes) |
boolean |
force()
Get force fail node flag.
|
void |
force(boolean force)
Sets force fail node flag.
|
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 |
traceLogLevel() |
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 CHANGE_TOPOLOGY_FLAG_POS
protected static final int CLIENT_ACK_FLAG_POS
protected static final int FORCE_FAIL_FLAG_POS
protected static final int COMPRESS_DATA_PACKET
protected TcpDiscoveryAbstractMessage()
Externalizable
interface.protected TcpDiscoveryAbstractMessage(UUID creatorNodeId)
creatorNodeId
- Creator node ID.protected TcpDiscoveryAbstractMessage(TcpDiscoveryAbstractMessage msg)
msg
- Message.public boolean traceLogLevel()
True
if need use trace logging for this message (to reduce amount of logging with debug level).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 boolean force()
public void force(boolean force)
force
- Force fail 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 @Nullable Set<UUID> failedNodes)
failedNodes
- Failed nodes.@Nullable public @Nullable Collection<UUID> failedNodes()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021