@TcpDiscoveryEnsureDelivery @TcpDiscoveryRedirectToClient public class TcpDiscoveryNodeAddedMessage extends TcpDiscoveryAbstractMessage
CLIENT_ACK_FLAG_POS, CLIENT_FLAG_POS, CLIENT_RECON_SUCCESS_FLAG_POS, FORCE_FAIL_FLAG_POS, RESPONDED_FLAG_POS
Constructor and Description |
---|
TcpDiscoveryNodeAddedMessage(TcpDiscoveryNodeAddedMessage msg) |
TcpDiscoveryNodeAddedMessage(UUID creatorNodeId,
TcpDiscoveryNode node,
DiscoveryDataPacket dataPacket,
long gridStartTime)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDiscoveryData()
Clears discovery data to minimize message size.
|
Collection<TcpDiscoveryNode> |
clientTopology() |
void |
clientTopology(Collection<TcpDiscoveryNode> top) |
IgniteUuid |
discardedCustomMessageId()
Gets discarded custom message ID.
|
IgniteUuid |
discardedMessageId()
Gets discarded message ID.
|
DiscoveryDataPacket |
gridDiscoveryData() |
long |
gridStartTime() |
Collection<TcpDiscoveryAbstractMessage> |
messages()
Gets pending messages sent to new node by its previous.
|
void |
messages(Collection<TcpDiscoveryAbstractMessage> msgs,
IgniteUuid discardMsgId,
IgniteUuid discardCustomMsgId)
Sets pending messages to send to new node.
|
TcpDiscoveryNode |
node()
Gets newly added node.
|
Collection<TcpDiscoveryNode> |
topology()
Gets topology.
|
void |
topology(Collection<TcpDiscoveryNode> top)
Sets topology.
|
Map<Long,Collection<ClusterNode>> |
topologyHistory()
Gets topology snapshots history.
|
void |
topologyHistory(Map<Long,Collection<ClusterNode>> topHist)
Sets topology snapshots history.
|
String |
toString() |
addFailedNode, client, client, creatorNodeId, equals, failedNodes, failedNodes, force, force, getFlag, hashCode, highPriority, id, pendingIndex, pendingIndex, senderNodeId, senderNodeId, setFlag, topologyVersion, topologyVersion, traceLogLevel, verified, verifierNodeId, verify
public TcpDiscoveryNodeAddedMessage(UUID creatorNodeId, TcpDiscoveryNode node, DiscoveryDataPacket dataPacket, long gridStartTime)
creatorNodeId
- Creator node ID.node
- Node to add to topology.dataPacket
- container for collecting discovery data across the cluster.gridStartTime
- Start time of the first grid node.public TcpDiscoveryNodeAddedMessage(TcpDiscoveryNodeAddedMessage msg)
msg
- Message.public TcpDiscoveryNode node()
@Nullable public Collection<TcpDiscoveryAbstractMessage> messages()
@Nullable public IgniteUuid discardedMessageId()
@Nullable public IgniteUuid discardedCustomMessageId()
public void messages(@Nullable Collection<TcpDiscoveryAbstractMessage> msgs, @Nullable IgniteUuid discardMsgId, @Nullable IgniteUuid discardCustomMsgId)
msgs
- Pending messages to send to new node.discardMsgId
- Discarded message ID.discardCustomMsgId
- Discarded custom message ID.@Nullable public Collection<TcpDiscoveryNode> topology()
public void topology(@Nullable Collection<TcpDiscoveryNode> top)
top
- Current topology.public void clientTopology(Collection<TcpDiscoveryNode> top)
top
- Topology at the moment when client joined.public Collection<TcpDiscoveryNode> clientTopology()
public Map<Long,Collection<ClusterNode>> topologyHistory()
public void topologyHistory(@Nullable Map<Long,Collection<ClusterNode>> topHist)
topHist
- Map with topology snapshots history.public DiscoveryDataPacket gridDiscoveryData()
DiscoveryDataPacket
carried by this message.public void clearDiscoveryData()
public long gridStartTime()
public String toString()
toString
in class TcpDiscoveryAbstractMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017