Interface AMXProxy

    • Method Detail

      • parent

        AMXProxy parent()
        MBean MUST return an ObjectName. May be null for DomainRoot only.
      • nameProp

        String nameProp()
        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.
      • parentPath

        String parentPath()
        The value of the PARENT_PATH_KEY property in the ObjectName
      • type

        String type()
        The value of the TYPE_KEY property in the ObjectName
      • valid

        boolean valid()
        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.
        Returns:
        true if this proxy is valid
      • childrenSet

        Set<AMXProxy> childrenSet()
        Get all existing children of all types. Returns null if the MBean is a leaf node (cannot have children) .
      • childrenMap

        Map<String,​AMXProxy> childrenMap​(String type)
        Get all children of a specified type, keyed by the name as found in the ObjectName.
      • childrenMap

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

        AMXProxy child​(String type)
        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.
      • as

        <T extends AMXProxy> T as​(Class<T> intf)
        Return a proxy implementing the specified interface. Clients with access to a sub-interface of AMXProxy can specialized it with this method; the proxy by default will implement only the base AMXProxy interface.

        This method is needed when crossing module boundaries where the desired class is not available to the AMXProxyHandler through its own classloader and/or when a generic proxy has been obtained through other means. When sub-interfaces of AMXProxy already return the appropriate type there is no reason or need to use this method.

      • attributesMap

        Map<String,​Object> attributesMap()
        Get a Map keyed by Attribute name of all Attribute values. Requires a trip to the server.
      • attributesMap

        Map<String,​Object> attributesMap​(Set<String> attrNames)
        Get a Map keyed by Attribute name of the specified Attribute values.
      • attributeNames

        Set<String> attributeNames()
        Get all available Attributes names, no trip to server needed. Requires a trip to the server.
      • path

        String path()
        Get this MBean's pathname. Its parent path can be obtained by calling path on parent()
      • objectName

        ObjectName objectName()
        The ObjectName of this MBean.
      • java

        String java()
        Return a Java interface representing this MBean, suitable for display or compilation
      • extra

        Extra extra()
        additional capabilities, including direct JMX access
      • invokeOp

        Object invokeOp​(String operationName)
        Invoke an operation by name, no arguments.
      • invokeOp

        Object invokeOp​(String operationName,
                        Object[] params,
                        String[] signature)
        Invoke an operation by name, JMX style params and signature.