@TcpDiscoveryEnsureDelivery @TcpDiscoveryRedirectToClient public class TcpDiscoveryNodeAddedMessage extends TcpDiscoveryAbstractMessage
CLIENT_FLAG_POS, CLIENT_RECON_SUCCESS_FLAG_POS, RESPONDED_FLAG_POS| Constructor and Description |
|---|
TcpDiscoveryNodeAddedMessage()
Public default no-arg constructor for
Externalizable interface. |
TcpDiscoveryNodeAddedMessage(UUID creatorNodeId,
TcpDiscoveryNode node,
Map<Integer,Object> newNodeDiscoData,
long gridStartTime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDiscoveryData(UUID nodeId,
Map<Integer,Object> discoData) |
void |
clearDiscoveryData()
Clears discovery data to minimize message size.
|
IgniteUuid |
discardedMessageId()
Gets discarded message ID.
|
long |
gridStartTime() |
Collection<TcpDiscoveryAbstractMessage> |
messages()
Gets pending messages sent to new node by its previous.
|
void |
messages(Collection<TcpDiscoveryAbstractMessage> msgs,
IgniteUuid discardMsgId)
Sets pending messages to send to new node.
|
Map<Integer,Object> |
newNodeDiscoveryData() |
TcpDiscoveryNode |
node()
Gets newly added node.
|
Map<UUID,Map<Integer,Object>> |
oldNodesDiscoveryData() |
void |
readExternal(ObjectInput in) |
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() |
void |
writeExternal(ObjectOutput out) |
client, client, creatorNodeId, destinationClientNodeId, destinationClientNodeId, equals, getFlag, hashCode, id, pendingIndex, pendingIndex, senderNodeId, senderNodeId, setFlag, topologyVersion, topologyVersion, verified, verifierNodeId, verifypublic TcpDiscoveryNodeAddedMessage()
Externalizable interface.public TcpDiscoveryNodeAddedMessage(UUID creatorNodeId, TcpDiscoveryNode node, Map<Integer,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 TcpDiscoveryNode node()
@Nullable public Collection<TcpDiscoveryAbstractMessage> messages()
@Nullable public IgniteUuid discardedMessageId()
public void messages(@Nullable Collection<TcpDiscoveryAbstractMessage> msgs, @Nullable IgniteUuid discardMsgId)
msgs - Pending messages to send to new node.discardMsgId - Discarded message ID.@Nullable public Collection<TcpDiscoveryNode> topology()
public void topology(@Nullable Collection<TcpDiscoveryNode> top)
top - Current topology.@Nullable public Map<Long,Collection<ClusterNode>> topologyHistory()
public void topologyHistory(@Nullable Map<Long,Collection<ClusterNode>> topHist)
topHist - Map with topology snapshots history.public Map<Integer,Object> newNodeDiscoveryData()
public Map<UUID,Map<Integer,Object>> oldNodesDiscoveryData()
public void addDiscoveryData(UUID nodeId, Map<Integer,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 TcpDiscoveryAbstractMessageIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class TcpDiscoveryAbstractMessageIOExceptionClassNotFoundExceptionpublic String toString()
toString in class TcpDiscoveryAbstractMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015