public class MBeanProxyHandler extends MBeanServerInvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GET |
protected static int |
GET_PREFIX_LENGTH |
protected static String |
IS |
protected static int |
IS_PREFIX_LENGTH |
protected Output |
mDebug |
protected MBeanInfo |
mInitialMBeanInfo
MBeanInfo we first obtained
|
protected static String |
SET |
| Constructor and Description |
|---|
MBeanProxyHandler(MBeanServerConnection conn,
ObjectName objectName,
MBeanInfo mbeanInfo)
Normally created through MBeanProxyFactory.newProxyInstance().
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionBad() |
protected void |
debug(Object... args) |
protected void |
debug(Object o) |
protected void |
debugMethod(String methodName,
Object... args) |
protected void |
debugMethod(String msg,
String methodName,
Object... args) |
boolean |
equals(Object rhs) |
protected String |
extractAttributeNameFromMethod(String methodName) |
Object |
getAttribute(String attributeName)
Same as XAttributesAccess.getAttribute, but with exceptions
|
protected Object |
getAttributeNoThrow(String name) |
AttributeList |
getAttributes(String[] attrNames)
Same as XAttributesAccess.getAttributes, but with exceptions
|
protected boolean |
getDebug() |
MBeanInfo |
getMBeanInfo() |
Logger |
getProxyLogger() |
int |
hashCode() |
String |
interfaceName() |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invoke the specified method.
|
Object |
invoke(String methodName,
Object[] params,
String[] signature)
JMX direct invoke
|
boolean |
isInvariantMBeanInfo() |
boolean |
isLocal()
return true if the MBean is local (in process)
|
boolean |
isValid() |
protected void |
postGetAttributeHook(String name,
Object value) |
protected void |
postGetAttributesHook(String[] requested,
AttributeList actual) |
protected void |
postSetAttributeHook(Attribute attr) |
protected void |
postSetAttributesHook(AttributeList requested,
AttributeList actual) |
void |
setAttribute(Attribute attr)
Same as XAttributesAccess.setAttribute, but with exceptions
|
AttributeList |
setAttributes(AttributeList requested)
Same as XAttributesAccess.setAttributes, but with exceptions
|
void |
targetUnregistered() |
getMBeanServerConnection, getObjectName, isMXBean, newProxyInstanceprotected static final String GET
protected static final String SET
protected static final String IS
protected static final int GET_PREFIX_LENGTH
protected static final int IS_PREFIX_LENGTH
protected final MBeanInfo mInitialMBeanInfo
protected final Output mDebug
public MBeanProxyHandler(MBeanServerConnection conn, ObjectName objectName, MBeanInfo mbeanInfo) throws IOException
conn - the connectionobjectName - the ObjectName of the proxied MBeanmbeanInfo - will be fetched if nullIOExceptionpublic boolean isInvariantMBeanInfo()
public String interfaceName()
public final void targetUnregistered()
public final void connectionBad()
public boolean isLocal()
public final boolean isValid()
public Logger getProxyLogger()
public MBeanInfo getMBeanInfo()
public Object getAttribute(String attributeName) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IOException
public AttributeList getAttributes(String[] attrNames) throws IOException, InstanceNotFoundException, ReflectionException
public void setAttribute(Attribute attr) throws IOException, InstanceNotFoundException, ReflectionException, AttributeNotFoundException, MBeanException, InvalidAttributeValueException
public AttributeList setAttributes(AttributeList requested) throws IOException, InstanceNotFoundException, ReflectionException
protected void postGetAttributesHook(String[] requested, AttributeList actual)
protected void postSetAttributeHook(Attribute attr)
protected void postSetAttributesHook(AttributeList requested, AttributeList actual)
public Object invoke(String methodName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
For anything else, the behavior of MBeanServerInvocationHandler is used.
invoke in interface InvocationHandlerinvoke in class MBeanServerInvocationHandlerThrowableprotected boolean getDebug()
protected void debug(Object... args)
protected void debug(Object o)
Copyright © 2017. All rights reserved.