public class Jsr160RequestDispatcher extends Object implements RequestDispatcher
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_TARGETS_ENV |
static String |
ALLOWED_TARGETS_SYSPROP |
Constructor and Description |
---|
Jsr160RequestDispatcher(Converters pConverters,
ServerHandle pServerInfo,
Restrictor pRestrictor,
Configuration pConfig)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(JmxRequest pJmxRequest)
The request can be handled when a target configuration is given.
|
Object |
dispatchRequest(JmxRequest pJmxReq)
Call a remote connector based on the connection information contained in
the request.
|
protected Map<String,Object> |
prepareEnv(Map<String,String> pTargetConfig)
Override this if a special environment setup is required for JSR-160 connection
|
boolean |
useReturnValueWithPath(JmxRequest pJmxRequest)
Whether a return value should be returned directly, ignoring any path.
|
public static final String ALLOWED_TARGETS_SYSPROP
public static final String ALLOWED_TARGETS_ENV
public Jsr160RequestDispatcher(Converters pConverters, ServerHandle pServerInfo, Restrictor pRestrictor, Configuration pConfig)
pConverters
- object/string converterspServerInfo
- server info for dealing with version informationpRestrictor
- restrictor for restricting access to certain MBeanspublic Object dispatchRequest(JmxRequest pJmxReq) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException
dispatchRequest
in interface RequestDispatcher
pJmxReq
- the request to dispatchInstanceNotFoundException
AttributeNotFoundException
ReflectionException
MBeanException
IOException
NotChangedException
protected Map<String,Object> prepareEnv(Map<String,String> pTargetConfig)
pTargetConfig
- the target configuration as obtained from the requestpublic boolean canHandle(JmxRequest pJmxRequest)
canHandle
in interface RequestDispatcher
pJmxRequest
- request to checkpublic boolean useReturnValueWithPath(JmxRequest pJmxRequest)
useReturnValueWithPath
in interface RequestDispatcher
pJmxRequest
- request for getting the handlerCopyright © 2018. All rights reserved.