public abstract class TcpDiscoveryAbstractMessage extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
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(UUID creatorNodeId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
client()
Get client node flag.
|
void |
client(boolean client)
Sets client node flag.
|
UUID |
creatorNodeId()
Gets creator node.
|
UUID |
destinationClientNodeId() |
void |
destinationClientNodeId(UUID destClientNodeId) |
boolean |
equals(Object obj) |
protected boolean |
getFlag(int pos) |
int |
hashCode() |
IgniteUuid |
id()
Gets message ID.
|
short |
pendingIndex() |
void |
pendingIndex(short pendingIdx) |
void |
readExternal(ObjectInput in) |
UUID |
senderNodeId()
Gets sender node ID.
|
void |
senderNodeId(UUID senderNodeId)
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.
|
void |
writeExternal(ObjectOutput out) |
protected static final int CLIENT_FLAG_POS
protected static final int RESPONDED_FLAG_POS
protected static final int CLIENT_RECON_SUCCESS_FLAG_POS
protected TcpDiscoveryAbstractMessage()
Externalizable interface.protected TcpDiscoveryAbstractMessage(UUID creatorNodeId)
creatorNodeId - Creator node ID.public UUID creatorNodeId()
public IgniteUuid id()
public UUID senderNodeId()
public void senderNodeId(UUID senderNodeId)
senderNodeId - 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 UUID destinationClientNodeId()
public void destinationClientNodeId(UUID destClientNodeId)
destClientNodeId - Destination client node ID.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 void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015