Package org.jboss.as.protocol.mgmt
Class ManagementPongRequestHandler
java.lang.Object
org.jboss.as.protocol.mgmt.ManagementPongRequestHandler
- All Implemented Interfaces:
ManagementRequestHandler<Void,,Void> ManagementRequestHandlerFactory
public class ManagementPongRequestHandler
extends Object
implements ManagementRequestHandlerFactory, ManagementRequestHandler<Void,Void>
ManagementRequestHandlerFactory for dealing with a ManagementPingRequest.- Author:
- Brian Stansberry (c) 2012 Red Hat Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory
ManagementRequestHandlerFactory.RequestHandlerChain -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the current id we send in pong responsesvoidhandleRequest(DataInput input, ActiveOperation.ResultHandler<Void> resultHandler, ManagementRequestContext<Void> context) Handle a request.voidUpdate the id we send in pong responsesresolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers, ManagementRequestHeader header) Try to resolve the request handler for the given header.
-
Constructor Details
-
ManagementPongRequestHandler
public ManagementPongRequestHandler()
-
-
Method Details
-
resolveHandler
public ManagementRequestHandler<?,?> resolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers, ManagementRequestHeader header) Description copied from interface:ManagementRequestHandlerFactoryTry to resolve the request handler for the given header. If an implementation is unable to resolve a handler itself, it must complete this method by returning the result ofhandlers.resolveNext().- Specified by:
resolveHandlerin interfaceManagementRequestHandlerFactory- Parameters:
handlers- the handlers chainheader- the request header- Returns:
- the management request handler
-
handleRequest
public void handleRequest(DataInput input, ActiveOperation.ResultHandler<Void> resultHandler, ManagementRequestContext<Void> context) throws IOException Description copied from interface:ManagementRequestHandlerHandle a request.- Specified by:
handleRequestin interfaceManagementRequestHandler<Void,Void> - Parameters:
input- the data inputresultHandler- the result handler which may be used to mark the operation as completecontext- the request context- Throws:
IOException
-
resetConnectionId
public void resetConnectionId()Update the id we send in pong responses -
getConnectionId
public long getConnectionId()Gets the current id we send in pong responses- Returns:
-