Modifier and Type | Field and Description |
---|---|
public static final String | DEFAULT_VALUE_FIELD
The name of the |
public static final String | IMMUTABLE_INFO_FIELD
The name of the |
public static final String | INTERFACE_CLASS_NAME_FIELD
The name of the |
public static final String | LEGAL_VALUES_FIELD
The name of the |
public static final String | MAX_VALUE_FIELD
The name of the |
public static final String | MIN_VALUE_FIELD
The name of the |
public static final String | MXBEAN_FIELD
The name of the |
public static final String | OPEN_TYPE_FIELD
The name of the |
public static final String | ORIGINAL_TYPE_FIELD
The name of the |
pack-priv static final JMX |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private static <T> T | Returns: Returns an M(X)Bean proxy generated for the provided interface classMBeanServerConnection to use connection, ObjectName M(X)Bean object name objectName, Class<T> M(X)Bean interface class interfaceClass, boolean Is a notification emitter? notificationEmitter, boolean Is an MXBean? isMXBean)Centralised M(X)Bean proxy creation code |
public static boolean | isMXBeanInterface(Class<?>
The candidate interface. interfaceClass)Test whether an interface is an MXBean interface. |
public static < allows the compiler to know that if the T> TinterfaceClass parameter is MyMBean.class , for
example, then the return type is MyMBean . | Returns: the new proxy instance.the MBean server to forward to. connection, ObjectName the name of the MBean within
objectName, Class<T> connection to forward to.the management interface that the MBean
exports, which will also be implemented by the returned proxy. interfaceClass)Make a proxy for a Standard MBean in a local or remote MBean Server. |
public static < allows the compiler to know that if the T> TinterfaceClass parameter is MyMBean.class , for
example, then the return type is MyMBean . | Returns: the new proxy instance.the MBean server to forward to. connection, ObjectName the name of the MBean within
objectName, Class<T> connection to forward to.the management interface that the MBean
exports, which will also be implemented by the returned proxy. interfaceClass, boolean make the returned proxy
implement notificationEmitter)NotificationEmitter by forwarding its methods
via connection .Make a proxy for a Standard MBean in a local or remote MBean
Server that may also support the methods of |
public static < allows the compiler to know that if the T> TinterfaceClass parameter is MyMXBean.class , for
example, then the return type is MyMXBean . | Returns: the new proxy instance.the MBean server to forward to. connection, ObjectName the name of the MBean within
objectName, Class<T> connection to forward to.the MXBean interface,
which will also be implemented by the returned proxy. interfaceClass)Make a proxy for an MXBean in a local or remote MBean Server. |
public static < allows the compiler to know that if the T> TinterfaceClass parameter is MyMXBean.class , for
example, then the return type is MyMXBean . | Returns: the new proxy instance.the MBean server to forward to. connection, ObjectName the name of the MBean within
objectName, Class<T> connection to forward to.the MXBean interface,
which will also be implemented by the returned proxy. interfaceClass, boolean make the returned proxy
implement notificationEmitter)NotificationEmitter by forwarding its methods
via connection .Make a proxy for an MXBean in a local or remote MBean
Server that may also support the methods of |
DEFAULT_VALUE_FIELD | back to summary |
---|---|
public static final String DEFAULT_VALUE_FIELD The name of the |
IMMUTABLE_INFO_FIELD | back to summary |
---|---|
public static final String IMMUTABLE_INFO_FIELD The name of the |
INTERFACE_CLASS_NAME_FIELD | back to summary |
---|---|
public static final String INTERFACE_CLASS_NAME_FIELD The name of the |
LEGAL_VALUES_FIELD | back to summary |
---|---|
public static final String LEGAL_VALUES_FIELD The name of the |
MAX_VALUE_FIELD | back to summary |
---|---|
public static final String MAX_VALUE_FIELD The name of the |
MIN_VALUE_FIELD | back to summary |
---|---|
public static final String MIN_VALUE_FIELD The name of the |
MXBEAN_FIELD | back to summary |
---|---|
public static final String MXBEAN_FIELD The name of the |
OPEN_TYPE_FIELD | back to summary |
---|---|
public static final String OPEN_TYPE_FIELD The name of the |
ORIGINAL_TYPE_FIELD | back to summary |
---|---|
public static final String ORIGINAL_TYPE_FIELD The name of the |
proof | back to summary |
---|---|
pack-priv static final JMX proof |
JMX | back to summary |
---|---|
private JMX() |
createProxy | back to summary |
---|---|
private static <T> T createProxy(MBeanServerConnection connection, ObjectName objectName, Class<T> interfaceClass, boolean notificationEmitter, boolean isMXBean) Centralised M(X)Bean proxy creation code
|
isMXBeanInterface | back to summary |
---|---|
public static boolean isMXBeanInterface(Class<?> interfaceClass) Test whether an interface is an MXBean interface.
An interface is an MXBean interface if it is public,
annotated
|
newMBeanProxy | back to summary |
---|---|
public static <T> T newMBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class<T> interfaceClass) Make a proxy for a Standard MBean in a local or remote MBean Server. If you have an MBean Server MyMBean proxy = JMX.newMBeanProxy(mbs, name, MyMBean.class); Suppose, for example, public interface MyMBean { public String getSomeAttribute(); public void setSomeAttribute(String value); public void someOperation(String param1, int param2); } Then you can execute:
The object returned by this method is a
This method is equivalent to
|
newMBeanProxy | back to summary |
---|---|
public static <T> T newMBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class<T> interfaceClass, boolean notificationEmitter) Make a proxy for a Standard MBean in a local or remote MBean
Server that may also support the methods of This method behaves the same as
|
newMXBeanProxy | back to summary |
---|---|
public static <T> T newMXBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class<T> interfaceClass) Make a proxy for an MXBean in a local or remote MBean Server. If you have an MBean Server MyMXBean proxy = JMX.newMXBeanProxy(mbs, name, MyMXBean.class); Suppose, for example,
public interface MyMXBean {
public String getSimpleAttribute();
public void setSimpleAttribute(String value);
public
Then:
The object returned by this method is a
This method is equivalent to
|
newMXBeanProxy | back to summary |
---|---|
public static <T> T newMXBeanProxy(MBeanServerConnection connection, ObjectName objectName, Class<T> interfaceClass, boolean notificationEmitter) Make a proxy for an MXBean in a local or remote MBean
Server that may also support the methods of This method behaves the same as
|