public class ManagementRequestHeader extends ManagementProtocolHeader
ManagementProtocolHeader as well as a field to identify who the
request should be handled by.| Constructor and Description |
|---|
ManagementRequestHeader(int version,
int requestId,
int batchId,
byte operationId)
Construct an instance with the protocol version and operation handler for the header.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchId()
The ID of the batch this request belongs to
|
byte |
getOperationId()
The id of the operation to be executed by this request
|
int |
getRequestId()
The ID of this request.
|
byte |
getType()
The type
|
void |
read(DataInput input) |
void |
write(DataOutput output)
Write the header information to the provided
DataOutput. |
cast, getVersion, parse, validateSignaturepublic ManagementRequestHeader(int version,
int requestId,
int batchId,
byte operationId)
version - The protocol versionrequestId - The request idbatchId - The batch idoperationId - The operation to invoke on the serverpublic void read(DataInput input) throws IOException
IOExceptionpublic void write(DataOutput output) throws IOException
DataOutput.write in class ManagementProtocolHeaderoutput - The output to write toIOException - If any problems occur writing to the outputpublic int getRequestId()
public int getBatchId()
public byte getOperationId()
public byte getType()
ManagementProtocolHeadergetType in class ManagementProtocolHeaderCopyright © 2014 JBoss by Red Hat. All rights reserved.