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, sendRequest
public static final ManagementPingRequest INSTANCE
public byte getOperationType()
ManagementRequest
protected void sendRequest(ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> context, FlushableDataOutput output) throws IOException
AbstractManagementRequest
sendRequest
in class AbstractManagementRequest<Long,Void>
resultHandler
- the result handlercontext
- the request contextoutput
- the data outputIOException
public void handleRequest(DataInput input, ActiveOperation.ResultHandler<Long> resultHandler, ManagementRequestContext<Void> managementRequestContext) throws IOException
ManagementRequestHandler
input
- the data inputresultHandler
- the result handler which may be used to mark the operation as completemanagementRequestContext
- the request contextIOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.