Class ManagementRequestHeader


  • public class ManagementRequestHeader
    extends ManagementProtocolHeader
    ManagementProtocol header used for management requests. Provides the default header fields from ManagementProtocolHeader as well as a field to identify who the request should be handled by.
    Author:
    John Bailey, Kabir Khan
    • Constructor Detail

      • ManagementRequestHeader

        public ManagementRequestHeader​(int version,
                                       int requestId,
                                       int batchId,
                                       byte operationId)
        Construct an instance with the protocol version and operation handler for the header.
        Parameters:
        version - The protocol version
        requestId - The request id
        batchId - The batch id
        operationId - The operation to invoke on the server
    • Method Detail

      • getRequestId

        public int getRequestId()
        The ID of this request.
        Returns:
        The request id
      • getBatchId

        public int getBatchId()
        The ID of the batch this request belongs to
        Returns:
        the batch id
      • getOperationId

        public byte getOperationId()
        The id of the operation to be executed by this request
        Returns:
        the operation id;