@GridTcpDiscoveryEnsureDelivery public class GridTcpDiscoveryNodeAddedMessage extends GridTcpDiscoveryAbstractMessage
| Constructor and Description |
|---|
GridTcpDiscoveryNodeAddedMessage()
Public default no-arg constructor for
Externalizable interface. |
GridTcpDiscoveryNodeAddedMessage(UUID creatorNodeId,
GridTcpDiscoveryNode node,
List<Object> newNodeDiscoData,
long gridStartTime)
Constructor.
|
creatorNodeId, equals, hashCode, id, senderNodeId, senderNodeId, topologyVersion, topologyVersion, verified, verifierNodeId, verifypublic GridTcpDiscoveryNodeAddedMessage()
Externalizable interface.public GridTcpDiscoveryNodeAddedMessage(UUID creatorNodeId, GridTcpDiscoveryNode node, List<Object> newNodeDiscoData, long gridStartTime)
creatorNodeId - Creator node ID.node - Node to add to topology.newNodeDiscoData - New Node discovery data.gridStartTime - Start time of the first grid node.public GridTcpDiscoveryNode node()
@Nullable public Collection<GridTcpDiscoveryAbstractMessage> messages()
public void messages(@Nullable Collection<GridTcpDiscoveryAbstractMessage> msgs)
msgs - Pending messages to send to new node.@Nullable public Collection<GridTcpDiscoveryNode> topology()
public void topology(@Nullable Collection<GridTcpDiscoveryNode> top)
top - Current topology.@Nullable public Map<Long,Collection<GridNode>> topologyHistory()
public void topologyHistory(@Nullable Map<Long,Collection<GridNode>> topHist)
topHist - Map with topology snapshots history.public boolean processPendingMessages()
True if pending messages should be processed on receive.public void processPendingMessages(boolean procPendingMsgs)
procPendingMsgs - True if pending messages should be processed on receive.public List<Object> newNodeDiscoveryData()
public Collection<List<Object>> oldNodesDiscoveryData()
public void addDiscoveryData(List<Object> discoData)
discoData - Discovery data to add.public void clearDiscoveryData()
public long gridStartTime()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class GridTcpDiscoveryAbstractMessageIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class GridTcpDiscoveryAbstractMessageIOExceptionClassNotFoundExceptionpublic String toString()
toString in class GridTcpDiscoveryAbstractMessageCopyright © 2014. All rights reserved.