Package org.jboss.as.protocol.mgmt
Class ManagementRequestHeader
- java.lang.Object
-
- org.jboss.as.protocol.mgmt.ManagementProtocolHeader
-
- org.jboss.as.protocol.mgmt.ManagementRequestHeader
-
public class ManagementRequestHeader extends ManagementProtocolHeader
ManagementProtocol header used for management requests. Provides the default header fields fromManagementProtocolHeaderas well as a field to identify who the request should be handled by.- Author:
- John Bailey, Kabir Khan
-
-
Constructor Summary
Constructors Constructor Description ManagementRequestHeader(int version, int requestId, int batchId, byte operationId)Construct an instance with the protocol version and operation handler for the header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchId()The ID of the batch this request belongs tobytegetOperationId()The id of the operation to be executed by this requestintgetRequestId()The ID of this request.bytegetType()The typevoidread(DataInput input)voidwrite(DataOutput output)Write the header information to the providedDataOutput.-
Methods inherited from class org.jboss.as.protocol.mgmt.ManagementProtocolHeader
cast, getVersion, parse, validateSignature
-
-
-
-
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 versionrequestId- The request idbatchId- The batch idoperationId- The operation to invoke on the server
-
-
Method Detail
-
read
public void read(DataInput input) throws IOException
- Throws:
IOException
-
write
public void write(DataOutput output) throws IOException
Write the header information to the providedDataOutput.- Overrides:
writein classManagementProtocolHeader- Parameters:
output- The output to write to- Throws:
IOException- If any problems occur writing to the output
-
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;
-
getType
public byte getType()
Description copied from class:ManagementProtocolHeaderThe type- Specified by:
getTypein classManagementProtocolHeader- Returns:
- the protocol byte identifying the type
-
-