public class ExecHandler extends JsonRequestHandler<JmxExecRequest>
| Constructor and Description |
|---|
ExecHandler(Restrictor pRestrictor,
Converters pConverters)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkForRestriction(JmxExecRequest pRequest)
Check whether there is a restriction on the type to apply.
|
Object |
doHandleRequest(MBeanServerConnection server,
JmxExecRequest request)
Execute an JMX operation.
|
RequestType |
getType()
The type of request which can be served by this handler
|
checkForModifiedSince, checkType, doHandleRequest, getRestrictor, handleAllServersAtOnce, handleRequest, handleRequest, useReturnValueWithPathpublic ExecHandler(Restrictor pRestrictor, Converters pConverters)
pRestrictor - restrictor for checking access restrictionspConverters - converters for serializationpublic RequestType getType()
getType in class JsonRequestHandler<JmxExecRequest>protected void checkForRestriction(JmxExecRequest pRequest)
checkForRestriction in class JsonRequestHandler<JmxExecRequest>pRequest - request to checkpublic Object doHandleRequest(MBeanServerConnection server, JmxExecRequest request) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException
doHandleRequest in class JsonRequestHandler<JmxExecRequest>server - server to tryrequest - request to process from where the operation and its arguments are extracted.InstanceNotFoundExceptionAttributeNotFoundExceptionReflectionExceptionMBeanExceptionIOExceptionCopyright © 2019. All rights reserved.