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, useReturnValueWithPath
public 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.InstanceNotFoundException
AttributeNotFoundException
ReflectionException
MBeanException
IOException
Copyright © 2016. All rights reserved.