Class HandshakeMessage2
- java.lang.Object
- 
- org.apache.ignite.spi.communication.tcp.messages.HandshakeMessage
- 
- org.apache.ignite.spi.communication.tcp.messages.HandshakeMessage2
 
 
- 
- All Implemented Interfaces:
- Serializable,- Message
 
 public class HandshakeMessage2 extends HandshakeMessage Updated handshake message.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intHANDSHAKE2_MESSAGE_SIZEMessage size in bytes includingHandshakeMessagefields.- 
Fields inherited from class org.apache.ignite.spi.communication.tcp.messages.HandshakeMessageMESSAGE_FULL_SIZE
 - 
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.MessageDIRECT_TYPE_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description HandshakeMessage2()HandshakeMessage2(UUID nodeId, long connectCnt, long rcvCnt, int connIdx)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intconnectionIndex()shortdirectType()Gets message type.intgetMessageSize()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.- 
Methods inherited from class org.apache.ignite.spi.communication.tcp.messages.HandshakeMessageconnectCount, fieldsCount, nodeId, onAckReceived, received
 
- 
 
- 
- 
- 
Field Detail- 
HANDSHAKE2_MESSAGE_SIZEpublic static final int HANDSHAKE2_MESSAGE_SIZE Message size in bytes includingHandshakeMessagefields.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
HandshakeMessage2public HandshakeMessage2() 
 - 
HandshakeMessage2public HandshakeMessage2(UUID nodeId, long connectCnt, long rcvCnt, int connIdx) - Parameters:
- nodeId- Node ID.
- connectCnt- Connect count.
- rcvCnt- Number of received messages.
- connIdx- Connection index.
 
 
- 
 - 
Method Detail- 
directTypepublic short directType() Gets message type.- Specified by:
- directTypein interface- Message
- Overrides:
- directTypein class- HandshakeMessage
- Returns:
- Message type.
 
 - 
connectionIndexpublic int connectionIndex() - Overrides:
- connectionIndexin class- HandshakeMessage
- Returns:
- Connection index.
 
 - 
getMessageSizepublic int getMessageSize() - Overrides:
- getMessageSizein class- HandshakeMessage
- Returns:
- Message size in bytes.
 
 - 
writeTopublic boolean writeTo(ByteBuffer buf, MessageWriter writer) Writes this message to provided byte buffer.- Specified by:
- writeToin interface- Message
- Overrides:
- writeToin class- HandshakeMessage
- Parameters:
- buf- Byte buffer.
- writer- Writer.
- Returns:
- Whether message was fully written.
 
 - 
readFrompublic boolean readFrom(ByteBuffer buf, MessageReader reader) Reads this message from provided byte buffer.- Specified by:
- readFromin interface- Message
- Overrides:
- readFromin class- HandshakeMessage
- Parameters:
- buf- Byte buffer.
- reader- Reader.
- Returns:
- Whether message was fully read.
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- HandshakeMessage
 
 
- 
 
-