Class GridClientHandshakeRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientAbstractMessage
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientHandshakeRequest
-
- All Implemented Interfaces:
Externalizable,Serializable,GridClientMessage
public class GridClientHandshakeRequest extends GridClientAbstractMessage
A client handshake request, containing version info and a marshaller ID. A handshake request structure is as follows:- Protocol version (2 bytes)
- Marshaller ID (2 bits)
- Reserved space (6 bits + 1 byte)
- Marshaller ID for backward compatibility (1 byte)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridClientHandshakeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytemarshallerId()voidmarshallerId(byte marshId)voidputBytes(byte[] buf, int off, int len)Sets bytes from specified buffer to a given value.byte[]rawBytes()StringtoString()shortversion()-
Methods inherited from class org.apache.ignite.internal.processors.rest.client.message.GridClientAbstractMessage
clientId, clientId, destinationId, destinationId, readExternal, requestId, requestId, sessionToken, sessionToken, writeExternal
-
-
-
-
Method Detail
-
version
public short version()
- Returns:
- Protocol version.
-
marshallerId
public byte marshallerId()
- Returns:
- Marshaller ID.
-
marshallerId
public void marshallerId(byte marshId)
- Parameters:
marshId- Marshaller ID.
-
putBytes
public void putBytes(byte[] buf, int off, int len)Sets bytes from specified buffer to a given value.- Parameters:
buf- Buffer.off- Offset.len- Length.
-
rawBytes
public byte[] rawBytes()
- Returns:
- Raw representation of this packet.
-
toString
public String toString()
- Overrides:
toStringin classGridClientAbstractMessage
-
-