Class AMXProxyHandler

    • Method Detail

      • as

        public <T extends AMXProxy> T as​(Class<T> intf)
        Deprecated.
        convert to specified class.
        Specified by:
        as in interface AMXProxy
      • extra

        public Extra extra()
        Deprecated.
        Description copied from interface: AMXProxy
        additional capabilities, including direct JMX access
        Specified by:
        extra in interface AMXProxy
      • domainRootProxy

        public final DomainRoot domainRootProxy()
        Deprecated.
      • isSingleProxyGetter

        protected static boolean isSingleProxyGetter​(Method method,
                                                     int argCount)
        Deprecated.
        Return true if the method is one that is requesting a single AMX object. Such methods are client-side methods and do not operate on the target MBean.
      • invoke

        public final Object invoke​(Object myProxy,
                                   Method method,
                                   Object[] args)
                            throws Throwable
        Deprecated.
        Description copied from class: MBeanProxyHandler
        Invoke the specified method. This implementation supports additional functionality over the JMX MBeanServerInvocationHandler: (1) It supports mapped Attribute names (ones that are not legal Java names) (2) it supports XAttributesAccess, which otherwise does not work correctly

        For anything else, the behavior of MBeanServerInvocationHandler is used.

        Specified by:
        invoke in interface InvocationHandler
        Overrides:
        invoke in class MBeanProxyHandler
        Throws:
        Throwable
      • invokeOp

        public Object invokeOp​(String operationName)
        Deprecated.
        Description copied from interface: AMXProxy
        Invoke an operation by name, no arguments.
        Specified by:
        invokeOp in interface AMXProxy
      • invokeOp

        public Object invokeOp​(String operationName,
                               Object[] args,
                               String[] signature)
        Deprecated.
        Description copied from interface: AMXProxy
        Invoke an operation by name, JMX style params and signature.
        Specified by:
        invokeOp in interface AMXProxy
      • interfaceName

        public static String interfaceName​(MBeanInfo info)
        Deprecated.
      • interfaceName

        public String interfaceName()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: get the Java classname of the interface for this MBean. If it has not been specified, a default generic interface is returned eg 'AMX'. There is no guarantee that the interface exists on the client.
        Specified by:
        interfaceName in interface MetaGetters
        Overrides:
        interfaceName in class MBeanProxyHandler
      • genericInterfaceName

        public static String genericInterfaceName​(MBeanInfo info)
        Deprecated.
      • genericInterfaceName

        public String genericInterfaceName()
        Deprecated.
      • genericInterface

        public Class<? extends AMXProxy> genericInterface()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: get the generic interface for this MBean eg AMXProxy or AMXConfigProxy or (possibly) something else. The generic interface is always part of amx-core.
        Specified by:
        genericInterface in interface MetaGetters
      • valid

        public boolean valid()
        Deprecated.
        Description copied from interface: AMXProxy
        A proxy can become invalid if its corresponding MBean is unregistered, the connection is lost, etc. If currently marked as valid, a trip to the server is made to verify validity.
        Specified by:
        valid in interface AMXProxy
        Returns:
        true if this proxy is valid
      • objectName

        public ObjectName objectName()
        Deprecated.
        Description copied from interface: AMXProxy
        The ObjectName of this MBean.
        Specified by:
        objectName in interface AMXProxy
      • nameProp

        public String nameProp()
        Deprecated.
        Description copied from interface: AMXProxy
        Value of the name property of the ObjectName. Could differ from getName(), which returns the internal name, which might not be legal in an ObjectName, or could have changed.
        Specified by:
        nameProp in interface AMXProxy
      • parentPath

        public String parentPath()
        Deprecated.
        Description copied from interface: AMXProxy
        The value of the PARENT_PATH_KEY property in the ObjectName
        Specified by:
        parentPath in interface AMXProxy
      • type

        public String type()
        Deprecated.
        Description copied from interface: AMXProxy
        The value of the TYPE_KEY property in the ObjectName
        Specified by:
        type in interface AMXProxy
      • getName

        public String getName()
        Deprecated.
        Description copied from interface: AMX_SPI
        the unencoded name, which could differ from the value of the 'name' property in the ObjectName
        Specified by:
        getName in interface AMX_SPI
      • getParent

        public ObjectName getParent()
        Deprecated.
        Description copied from interface: AMX_SPI
        Return the ObjectName of the parent. Must not be null (except for DomainRoot)
        Specified by:
        getParent in interface AMX_SPI
      • parent

        public AMXProxy parent()
        Deprecated.
        Description copied from interface: AMXProxy
        MBean MUST return an ObjectName. May be null for DomainRoot only.
        Specified by:
        parent in interface AMXProxy
      • path

        public String path()
        Deprecated.
        Description copied from interface: AMXProxy
        Get this MBean's pathname. Its parent path can be obtained by calling path on AMXProxy.parent()
        Specified by:
        path in interface AMXProxy
      • getChildren

        public ObjectName[] getChildren()
        Deprecated.
        Description copied from interface: AMX_SPI
        If no children are possible (a leaf node), an AttributeNotFoundException should be thrown.
        Specified by:
        getChildren in interface AMX_SPI
      • childrenSet

        public Set<AMXProxy> childrenSet()
        Deprecated.
        Returns an array of children, including an empty array if there are none, but children are possible. Returns null if children are not possible.
        Specified by:
        childrenSet in interface AMXProxy
      • childrenMap

        public Map<String,​AMXProxy> childrenMap​(String type)
        Deprecated.
        Description copied from interface: AMXProxy
        Get all children of a specified type, keyed by the name as found in the ObjectName.
        Specified by:
        childrenMap in interface AMXProxy
      • childrenMap

        public <T extends AMXProxyMap<String,​T> childrenMap​(Class<T> intf)
        Deprecated.
        Description copied from interface: AMXProxy
        Get all children of the same type. The Map is keyed by the name as found in the ObjectName.
        Specified by:
        childrenMap in interface AMXProxy
        Parameters:
        intf - the proxy interface, type is deduced from it
      • child

        public AMXProxy child​(String type)
        Deprecated.
        Description copied from interface: AMXProxy
        Get a singleton child of the specified type. An exception is thrown if the child is not a singleton. If children do not exist, or there is no such child, then null is returned.
        Specified by:
        child in interface AMXProxy
      • attributesMap

        public Map<String,​Object> attributesMap​(Set<String> attrNames)
        Deprecated.
        Description copied from interface: AMXProxy
        Get a Map keyed by Attribute name of the specified Attribute values.
        Specified by:
        attributesMap in interface AMXProxy
      • attributesMap

        public Map<String,​Object> attributesMap()
        Deprecated.
        Description copied from interface: AMXProxy
        Get a Map keyed by Attribute name of all Attribute values. Requires a trip to the server.
        Specified by:
        attributesMap in interface AMXProxy
      • attributeNames

        public Set<String> attributeNames()
        Deprecated.
        Description copied from interface: AMXProxy
        Get all available Attributes names, no trip to server needed. Requires a trip to the server.
        Specified by:
        attributeNames in interface AMXProxy
      • getDescriptorField

        public static <T> T getDescriptorField​(MBeanInfo info,
                                               String name,
                                               T defaultValue)
        Deprecated.
      • singleton

        public static boolean singleton​(MBeanInfo info)
        Deprecated.
      • globalSingleton

        public static boolean globalSingleton​(MBeanInfo info)
        Deprecated.
      • getDescriptorField

        protected <T> T getDescriptorField​(String name,
                                           T defaultValue)
        Deprecated.
      • singleton

        public boolean singleton()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: true if this MBean is a singleton (1 instance within its parent scope)
        Specified by:
        singleton in interface MetaGetters
      • globalSingleton

        public boolean globalSingleton()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: true if this MBean is a global singleton (1 instance within entire domain)
        Specified by:
        globalSingleton in interface MetaGetters
      • group

        public String group()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: return the group value
        Specified by:
        group in interface MetaGetters
      • supportsAdoption

        public boolean supportsAdoption()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: return true if new children are allowed by external subsystems
        Specified by:
        supportsAdoption in interface MetaGetters
      • subTypes

        public String[] subTypes()
        Deprecated.
        Description copied from interface: MetaGetters
        From Descriptor: Get the *potential* sub types this MBean expects to have
        Specified by:
        subTypes in interface MetaGetters
      • java

        public String java()
        Deprecated.
        Description copied from interface: AMXProxy
        Return a Java interface representing this MBean, suitable for display or compilation
        Specified by:
        java in interface AMXProxy
        Specified by:
        java in interface Extra