Class GridDhtPartitionExchangeId
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionExchangeId
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<GridDhtPartitionExchangeId>,Message
public class GridDhtPartitionExchangeId extends Object implements Message, Comparable<GridDhtPartitionExchangeId>, Externalizable
Exchange ID.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description GridDhtPartitionExchangeId()Empty constructor required byExternalizable.GridDhtPartitionExchangeId(UUID nodeId, int evt, AffinityTopologyVersion topVer)GridDhtPartitionExchangeId(UUID nodeId, DiscoveryEvent discoEvt, AffinityTopologyVersion topVer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GridDhtPartitionExchangeId o)shortdirectType()Gets message type.StringdiscoveryEventName()booleanequals(Object o)intevent()ClusterNodeeventNode()bytefieldsCount()Gets fields count.inthashCode()booleanisJoined()booleanisLeft()UUIDnodeId()voidonAckReceived()Method called when ack message received.voidreadExternal(ObjectInput in)booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.AffinityTopologyVersiontopologyVersion()StringtoString()voidwriteExternal(ObjectOutput out)booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
GridDhtPartitionExchangeId
public GridDhtPartitionExchangeId(UUID nodeId, int evt, AffinityTopologyVersion topVer)
- Parameters:
nodeId- Node ID.evt- Event type.topVer- Topology version.
-
GridDhtPartitionExchangeId
public GridDhtPartitionExchangeId(UUID nodeId, DiscoveryEvent discoEvt, AffinityTopologyVersion topVer)
- Parameters:
nodeId- Node ID.discoEvt- Event.topVer- Topology version.
-
GridDhtPartitionExchangeId
public GridDhtPartitionExchangeId()
Empty constructor required byExternalizable.
-
-
Method Detail
-
nodeId
public UUID nodeId()
- Returns:
- Node ID.
-
event
public int event()
- Returns:
- Event.
-
eventNode
public ClusterNode eventNode()
- Returns:
- Discovery event node.
-
discoveryEventName
public String discoveryEventName()
- Returns:
- Discovery event name.
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
- Returns:
- Order.
-
isJoined
public boolean isJoined()
- Returns:
Trueif exchange is for new node joining.
-
isLeft
public boolean isLeft()
- Returns:
Trueif exchange is for node leaving.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
compareTo
public int compareTo(GridDhtPartitionExchangeId o)
- Specified by:
compareToin interfaceComparable<GridDhtPartitionExchangeId>
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-