Package org.jboss.as.protocol.mgmt
Class ManagementPingRequest
java.lang.Object
org.jboss.as.protocol.mgmt.AbstractManagementRequest<Long,Void>
org.jboss.as.protocol.mgmt.ManagementPingRequest
- All Implemented Interfaces:
ManagementRequest<Long,,Void> ManagementRequestHandler<Long,,Void> ManagementResponseHandler<Long,Void>
ManagementRequest that sends a ManagementProtocol.TYPE_PING header.
Note that this is distinct from the top-level sending of ManagementPingHeader used
by legacy (community 7.0.x) clients.- Author:
- Brian Stansberry (c) 2012 Red Hat Inc.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteThe operation type.voidhandleRequest(DataInput input, ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> managementRequestContext) Handle a request.protected voidsendRequest(ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> context, FlushableDataOutput output) Send the request.Methods inherited from class org.jboss.as.protocol.mgmt.AbstractManagementRequest
handleFailed, sendRequest
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ManagementPingRequest
public ManagementPingRequest()
-
-
Method Details
-
getOperationType
public byte getOperationType()Description copied from interface:ManagementRequestThe operation type.- Returns:
- the operation type
-
sendRequest
protected void sendRequest(ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> context, FlushableDataOutput output) throws IOException Description copied from class:AbstractManagementRequestSend the request.- Specified by:
sendRequestin classAbstractManagementRequest<Long,Void> - Parameters:
resultHandler- the result handlercontext- the request contextoutput- the data output- Throws:
IOException
-
handleRequest
public void handleRequest(DataInput input, ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> managementRequestContext) throws IOException Description copied from interface:ManagementRequestHandlerHandle a request.- Parameters:
input- the data inputresultHandler- the result handler which may be used to mark the operation as completemanagementRequestContext- the request context- Throws:
IOException
-