spring-framework / org.springframework.jmx.access

Package org.springframework.jmx.access

Types

MBeanProxyFactoryBean

open class MBeanProxyFactoryBean : MBeanClientInterceptor, FactoryBean<Any>, BeanClassLoaderAware, InitializingBean

Creates a proxy to a managed resource running either locally or remotely. The "proxyInterface" property defines the interface that the generated proxy is supposed to implement. This interface should define methods and properties that correspond to operations and attributes in the management interface of the resource you wish to proxy.

There is no need for the managed resource to implement the proxy interface, although you may find it convenient to do. It is not required that every operation and attribute in the management interface is matched by a corresponding property or method in the proxy interface.

Attempting to invoke or access any method or property on the proxy interface that does not correspond to the management interface will lead to an InvalidInvocationException.

Exceptions

InvalidInvocationException

open class InvalidInvocationException : JMRuntimeException

Thrown when trying to invoke an operation on a proxy that is not exposed by the proxied MBean resource's management interface.

InvocationFailureException

open class InvocationFailureException : JmxException

Thrown when an invocation on an MBean resource failed with an exception (either a reflection exception or an exception thrown by the target method itself).

MBeanConnectFailureException

open class MBeanConnectFailureException : JmxException

Thrown when an invocation failed because of an I/O problem on the MBeanServerConnection.

MBeanInfoRetrievalException

open class MBeanInfoRetrievalException : JmxException

Thrown if an exception is encountered when trying to retrieve MBean metadata.