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>
public class ManagementPingRequest extends AbstractManagementRequest<Long,Void>
ManagementRequestthat sends aManagementProtocol.TYPE_PINGheader. Note that this is distinct from the top-level sending ofManagementPingHeaderused by legacy (community 7.0.x) clients.- Author:
- Brian Stansberry (c) 2012 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static ManagementPingRequestINSTANCE
-
Constructor Summary
Constructors Constructor Description ManagementPingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetOperationType()The 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 Detail
-
INSTANCE
public static final ManagementPingRequest INSTANCE
-
-
Method Detail
-
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
-
-