public class ManagementPingRequest extends AbstractManagementRequest<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.| Modifier and Type | Field and Description |
|---|---|
static ManagementPingRequest |
INSTANCE |
| Constructor and Description |
|---|
ManagementPingRequest() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getOperationType()
The operation type.
|
void |
handleRequest(DataInput input,
ActiveOperation.ResultHandler<Long> resultHandler,
ManagementRequestContext<Void> managementRequestContext)
Handle a request.
|
protected void |
sendRequest(ActiveOperation.ResultHandler<Long> resultHandler,
ManagementRequestContext<Void> context,
FlushableDataOutput output)
Send the request.
|
handleFailed, sendRequestpublic static final ManagementPingRequest INSTANCE
public byte getOperationType()
ManagementRequestprotected void sendRequest(ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> context, FlushableDataOutput output) throws IOException
AbstractManagementRequestsendRequest in class AbstractManagementRequest<Long,Void>resultHandler - the result handlercontext - the request contextoutput - the data outputIOExceptionpublic void handleRequest(DataInput input, ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> managementRequestContext) throws IOException
ManagementRequestHandlerinput - the data inputresultHandler - the result handler which may be used to mark the operation as completemanagementRequestContext - the request contextIOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.