Class ClientMessageParser
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.ClientMessageParser
-
- All Implemented Interfaces:
ClientListenerMessageParser
public class ClientMessageParser extends Object implements ClientListenerMessageParser
Thin client message parser.
-
-
Field Summary
Fields Modifier and Type Field Description static shortOP_COMPUTE_TASK_FINISHEDstatic shortOP_QUERY_CONTINUOUS_EVENT_NOTIFICATION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientListenerRequestdecode(BinaryReaderExImpl reader)Decodes the request.ClientListenerRequestdecode(ClientMessage msg)Decode request from byte array.intdecodeCommandType(ClientMessage msg)Decode command type.longdecodeRequestId(ClientMessage msg)Decode request Id.ClientMessageencode(ClientListenerResponse resp)Encode response to byte array.
-
-
-
Field Detail
-
OP_QUERY_CONTINUOUS_EVENT_NOTIFICATION
public static final short OP_QUERY_CONTINUOUS_EVENT_NOTIFICATION
- See Also:
- Constant Field Values
-
OP_COMPUTE_TASK_FINISHED
public static final short OP_COMPUTE_TASK_FINISHED
- See Also:
- Constant Field Values
-
-
Method Detail
-
decode
public ClientListenerRequest decode(ClientMessage msg)
Decode request from byte array.- Specified by:
decodein interfaceClientListenerMessageParser- Parameters:
msg- Message.- Returns:
- Request.
-
decode
public ClientListenerRequest decode(BinaryReaderExImpl reader)
Decodes the request.- Parameters:
reader- Reader.- Returns:
- Request.
-
encode
public ClientMessage encode(ClientListenerResponse resp)
Encode response to byte array.- Specified by:
encodein interfaceClientListenerMessageParser- Parameters:
resp- Response.- Returns:
- Message.
-
decodeCommandType
public int decodeCommandType(ClientMessage msg)
Decode command type. Allows to recognize the command (message type) without decoding the entire message.- Specified by:
decodeCommandTypein interfaceClientListenerMessageParser- Parameters:
msg- Message.- Returns:
- Command type.
-
decodeRequestId
public long decodeRequestId(ClientMessage msg)
Decode request Id. Allows to recognize the request Id, if any, without decoding the entire message.- Specified by:
decodeRequestIdin interfaceClientListenerMessageParser- Parameters:
msg- Message.- Returns:
- Request Id.
-
-