@Deprecated @Taxonomy(stability=PRIVATE) public final class AMXProxyHandler extends MBeanProxyHandler implements AMXProxy, Extra
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_NOTIFICATION_LISTENER
Deprecated.
|
static String |
REMOVE_NOTIFICATION_LISTENER
Deprecated.
|
GET_PREFIX_LENGTH, IS, IS_PREFIX_LENGTH, mDebug, mInitialMBeanInfo, SET| Modifier | Constructor and Description |
|---|---|
protected |
AMXProxyHandler(MBeanServerConnection conn,
ObjectName objectName,
MBeanInfo mbeanInfo)
Deprecated.
Create a new AMX proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_invoke(Object myProxy,
Method method,
Object[] argsIn)
Deprecated.
|
protected void |
addNotificationListener(Object[] args)
Deprecated.
|
<T extends AMXProxy> |
as(Class<T> intf)
Deprecated.
convert to specified class.
|
MBeanAttributeInfo |
attributeInfo(String attrName)
Deprecated.
Get MBeanOperationInfo for specified attribute name.
|
Set<String> |
attributeNames()
Deprecated.
Get all available Attributes names, no trip to server needed.
|
Map<String,Object> |
attributesMap()
Deprecated.
Get a Map keyed by Attribute name of all Attribute values.
|
Map<String,Object> |
attributesMap(Set<String> attrNames)
Deprecated.
Get a Map keyed by Attribute name of the specified Attribute values.
|
<T extends AMXProxy> |
child(Class<T> intf)
Deprecated.
Get a singleton child.
|
AMXProxy |
child(String type)
Deprecated.
Get a singleton child of the specified type.
|
<T extends AMXProxy> |
child(String type,
Class<T> intf)
Deprecated.
|
<T extends AMXProxy> |
child(String type,
String name,
Class<T> intf)
Deprecated.
|
<T extends AMXProxy> |
childrenMap(Class<T> intf)
Deprecated.
Get all children of the same type.
|
Map<String,AMXProxy> |
childrenMap(String type)
Deprecated.
Get all children of a specified type, keyed by the name as found in the ObjectName.
|
<T extends AMXProxy> |
childrenMap(String type,
Class<T> intf)
Deprecated.
|
Map<String,Map<String,AMXProxy>> |
childrenMaps()
Deprecated.
Get Maps keyed by type, with a Map keyed by name.
|
Set<AMXProxy> |
childrenSet()
Deprecated.
Returns an array of children, including an empty array if there are none, but children
are possible.
|
Set<AMXProxy> |
childrenSet(ObjectName[] objectNames)
Deprecated.
|
<T extends AMXProxy> |
childrenSet(String type,
Class<T> intf)
Deprecated.
|
Set<String> |
childrenTypes(ObjectName[] objectNames)
Deprecated.
|
Descriptor |
descriptor()
Deprecated.
MBeanInfo descriptor
|
DomainRoot |
domainRootProxy()
Deprecated.
|
boolean |
equals(Object rhs)
Deprecated.
|
Extra |
extra()
Deprecated.
additional capabilities, including direct JMX access
|
Class<? extends AMXProxy> |
genericInterface()
Deprecated.
From Descriptor: get the generic interface for this MBean
eg AMXProxy or AMXConfigProxy or (possibly) something else.
|
String |
genericInterfaceName()
Deprecated.
|
static String |
genericInterfaceName(MBeanInfo info)
Deprecated.
|
MBeanAttributeInfo |
getAttributeInfo(String name)
Deprecated.
|
ObjectName[] |
getChildren()
Deprecated.
If no children are possible (a leaf node), an AttributeNotFoundException should be thrown.
|
static <T> T |
getDescriptorField(MBeanInfo info,
String name,
T defaultValue)
Deprecated.
|
protected <T> T |
getDescriptorField(String name,
T defaultValue)
Deprecated.
|
String |
getName()
Deprecated.
the unencoded name, which could differ from the value of the 'name' property in the ObjectName
|
ObjectName |
getParent()
Deprecated.
Return the ObjectName of the parent.
|
protected AMXProxy |
getProxy(ObjectName objectName)
Deprecated.
|
protected <T extends AMXProxy> |
getProxy(ObjectName objectName,
Class<T> intf)
Deprecated.
|
boolean |
globalSingleton()
Deprecated.
From Descriptor: true if this MBean is a global singleton (1 instance within entire domain)
|
static boolean |
globalSingleton(MBeanInfo info)
Deprecated.
|
String |
group()
Deprecated.
From Descriptor: return the group value
|
int |
hashCode()
Deprecated.
|
String |
interfaceName()
Deprecated.
From Descriptor: get the Java classname of the interface for this MBean.
|
static String |
interfaceName(MBeanInfo info)
Deprecated.
|
Object |
invoke(Object myProxy,
Method method,
Object[] args)
Deprecated.
Invoke the specified method.
|
Object |
invokeOp(String operationName)
Deprecated.
Invoke an operation by name, no arguments.
|
Object |
invokeOp(String operationName,
Object[] args,
String[] signature)
Deprecated.
Invoke an operation by name, JMX style params and signature.
|
protected static boolean |
isSingleProxyGetter(Method method,
int argCount)
Deprecated.
Return true if the method is one that is requesting a single AMX object.
|
String |
java()
Deprecated.
Return a Java interface representing this MBean, suitable for display or compilation
|
MBeanInfo |
mbeanInfo()
Deprecated.
|
MBeanServerConnection |
mbeanServerConnection()
Deprecated.
Get the MBeanServerConnection.
|
String |
nameProp()
Deprecated.
Value of the name property of the ObjectName.
|
ObjectName |
objectName()
Deprecated.
The ObjectName of this MBean.
|
MBeanOperationInfo |
operationInfo(String operationName)
Deprecated.
Get MBeanOperationInfo for specified operation.
|
AMXProxy |
parent()
Deprecated.
MBean MUST return an ObjectName.
|
String |
parentPath()
Deprecated.
The value of the
PARENT_PATH_KEY property in the ObjectName |
String |
path()
Deprecated.
Get this MBean's pathname.
|
ProxyFactory |
proxyFactory()
Deprecated.
|
protected void |
removeNotificationListener(Object[] args)
Deprecated.
|
boolean |
singleton()
Deprecated.
From Descriptor: true if this MBean is a singleton (1 instance within its parent scope)
|
static boolean |
singleton(MBeanInfo info)
Deprecated.
|
String[] |
subTypes()
Deprecated.
From Descriptor: Get the *potential* sub types this MBean expects to have
|
boolean |
supportsAdoption()
Deprecated.
From Descriptor: return true if new children are allowed by external subsystems
|
String |
type()
Deprecated.
The value of the
TYPE_KEY property in the ObjectName |
static AMXProxyHandler |
unwrap(AMXProxy proxy)
Deprecated.
|
boolean |
valid()
Deprecated.
A proxy can become invalid if its corresponding MBean is unregistered, the connection is lost, etc.
|
connectionBad, debug, debug, debugMethod, debugMethod, extractAttributeNameFromMethod, getAttribute, getAttributeNoThrow, getAttributes, getDebug, getMBeanInfo, getProxyLogger, invoke, isInvariantMBeanInfo, isLocal, isValid, postGetAttributeHook, postGetAttributesHook, postSetAttributeHook, postSetAttributesHook, setAttribute, setAttributes, targetUnregisteredgetMBeanServerConnection, getObjectName, isMXBean, newProxyInstanceclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributes, invoke, setAttribute, setAttributesisInvariantMBeanInfopublic static final String ADD_NOTIFICATION_LISTENER
public static final String REMOVE_NOTIFICATION_LISTENER
protected AMXProxyHandler(MBeanServerConnection conn, ObjectName objectName, MBeanInfo mbeanInfo) throws IOException
IOExceptionpublic Extra extra()
AMXProxypublic static AMXProxyHandler unwrap(AMXProxy proxy)
public final DomainRoot domainRootProxy()
protected <T extends AMXProxy> T getProxy(ObjectName objectName, Class<T> intf)
protected AMXProxy getProxy(ObjectName objectName)
protected static boolean isSingleProxyGetter(Method method, int argCount)
public final Object invoke(Object myProxy, Method method, Object[] args) throws Throwable
MBeanProxyHandlerFor anything else, the behavior of MBeanServerInvocationHandler is used.
invoke in interface InvocationHandlerinvoke in class MBeanProxyHandlerThrowablepublic Object invokeOp(String operationName)
AMXProxypublic Object invokeOp(String operationName, Object[] args, String[] signature)
AMXProxyprotected Object _invoke(Object myProxy, Method method, Object[] argsIn) throws Throwable
Throwableprotected void addNotificationListener(Object[] args) throws IOException, InstanceNotFoundException
IOExceptionInstanceNotFoundExceptionprotected void removeNotificationListener(Object[] args) throws IOException, InstanceNotFoundException, ListenerNotFoundException
public String interfaceName()
MetaGettersinterfaceName in interface MetaGettersinterfaceName in class MBeanProxyHandlerpublic String genericInterfaceName()
public Class<? extends AMXProxy> genericInterface()
MetaGettersgenericInterface in interface MetaGetterspublic boolean valid()
AMXProxypublic ProxyFactory proxyFactory()
proxyFactory in interface ExtraProxyFactory that created this proxy.public MBeanServerConnection mbeanServerConnection()
ExtrambeanServerConnection in interface Extrapublic ObjectName objectName()
AMXProxyobjectName in interface AMXProxypublic String nameProp()
AMXProxypublic String parentPath()
AMXProxyPARENT_PATH_KEY property in the ObjectNameparentPath in interface AMXProxypublic String type()
AMXProxyTYPE_KEY property in the ObjectNamepublic String getName()
AMX_SPIpublic ObjectName getParent()
AMX_SPIpublic AMXProxy parent()
AMXProxypublic String path()
AMXProxypath
on AMXProxy.parent()public ObjectName[] getChildren()
AMX_SPIgetChildren in interface AMX_SPIpublic Set<AMXProxy> childrenSet()
childrenSet in interface AMXProxypublic Set<AMXProxy> childrenSet(ObjectName[] objectNames)
public Set<String> childrenTypes(ObjectName[] objectNames)
public Map<String,AMXProxy> childrenMap(String type)
AMXProxychildrenMap in interface AMXProxypublic <T extends AMXProxy> Map<String,T> childrenMap(Class<T> intf)
AMXProxychildrenMap in interface AMXProxyintf - the proxy interface, type is deduced from itpublic <T extends AMXProxy> Map<String,T> childrenMap(String type, Class<T> intf)
public Map<String,Map<String,AMXProxy>> childrenMaps()
AMXProxychildrenMaps in interface AMXProxypublic AMXProxy child(String type)
AMXProxypublic <T extends AMXProxy> T child(Class<T> intf)
AMXProxyUtil.deduceType(java.lang.Class<?>).public final MBeanInfo mbeanInfo()
mbeanInfo in interface MetaGetterspublic Map<String,Object> attributesMap(Set<String> attrNames)
AMXProxyattributesMap in interface AMXProxypublic Map<String,Object> attributesMap()
AMXProxyattributesMap in interface AMXProxypublic MBeanAttributeInfo getAttributeInfo(String name)
public Set<String> attributeNames()
AMXProxyattributeNames in interface AMXProxypublic static <T> T getDescriptorField(MBeanInfo info, String name, T defaultValue)
public static boolean singleton(MBeanInfo info)
public static boolean globalSingleton(MBeanInfo info)
protected <T> T getDescriptorField(String name, T defaultValue)
public boolean singleton()
MetaGetterssingleton in interface MetaGetterspublic boolean globalSingleton()
MetaGettersglobalSingleton in interface MetaGetterspublic String group()
MetaGettersgroup in interface MetaGetterspublic boolean supportsAdoption()
MetaGetterssupportsAdoption in interface MetaGetterspublic String[] subTypes()
MetaGetterssubTypes in interface MetaGetterspublic String java()
AMXProxypublic Descriptor descriptor()
MetaGettersdescriptor in interface MetaGetterspublic MBeanAttributeInfo attributeInfo(String attrName)
MetaGettersattributeInfo in interface MetaGetterspublic MBeanOperationInfo operationInfo(String operationName)
MetaGettersoperationInfo in interface MetaGetterspublic boolean equals(Object rhs)
equals in class MBeanProxyHandlerpublic int hashCode()
hashCode in class MBeanProxyHandlerCopyright © 2017. All rights reserved.