| Modifier and Type | Field and Description |
|---|---|
| private final MBeanInfo | |
| private final PerInterface | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv <T> |
| Modifier and Type | Method and Description |
|---|---|
| public final Object | getAttribute(String attribute)
Implements javax. Obtain the value of a specific attribute of the Dynamic MBean. |
| public final AttributeList | getAttributes(String[] attributes)
Implements javax. Get the values of several attributes of the Dynamic MBean. |
| public final String | getClassName()
Implements com. The name of this MBean's class, as used by permission checks. |
| pack-priv abstract Object | |
| public MBeanInfo | getMBeanInfo()
Implements javax. Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object. |
| public final Class | |
| pack-priv abstract MBeanIntrospector | |
| public final Object | getResource()
Implements com. The resource corresponding to this MBean. |
| public final Object | invoke(String operation, Object[] params, String[] signature)
Implements javax. Allows an action to be invoked on the Dynamic MBean. |
| public final boolean | |
| public final void | postDeregister()
Implements javax. Allows the MBean to perform any operations needed after having been unregistered in the MBean server. |
| public final void | postRegister(Boolean registrationDone)
Implements javax. Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. |
| public final void | preDeregister()
Implements javax. Allows the MBean to perform any operations it needs before being unregistered by the MBean server. |
| public final ObjectName | preRegister(MBeanServer server, ObjectName name)
Implements javax. Allows the MBean to perform any operations it needs before being registered in the MBean Server. |
| public final void | preRegister2(MBeanServer server, ObjectName name)
Implements com. Additional registration hook. |
| public abstract void | |
| public final void | registerFailed()
Implements com. Additional registration hook. |
| public final void | setAttribute(Attribute attribute)
Implements javax. Set the value of a specific attribute of the Dynamic MBean. |
| public final AttributeList | setAttributes(AttributeList attributes)
Implements javax. Sets the values of several attributes of the Dynamic MBean. |
| public abstract void |
| mbeanInfo | back to summary |
|---|---|
| private final MBeanInfo mbeanInfo | |
| perInterface | back to summary |
|---|---|
| private final PerInterface<M> perInterface | |
| resource | back to summary |
|---|---|
| private final Object resource | |
| MBeanSupport | back to summary |
|---|---|
| pack-priv <T> MBeanSupport(T resource, Class<T> mbeanInterfaceType) throws NotCompliantMBeanException | |
| getAttribute | back to summary |
|---|---|
| public final Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException Implements javax. Doc from javax. Obtain the value of a specific attribute of the Dynamic MBean.
| |
| getAttributes | back to summary |
|---|---|
| public final AttributeList getAttributes(String[] attributes) Implements javax. Doc from javax. Get the values of several attributes of the Dynamic MBean. | |
| getClassName | back to summary |
|---|---|
| public final String getClassName() Implements com. Doc from com. The name of this MBean's class, as used by permission checks. This is typically equal to getResource().getClass().getName(). This method is typically faster, sometimes much faster, than getMBeanInfo().getClassName(), but should return the same result. | |
| getCookie | back to summary |
|---|---|
| pack-priv abstract Object getCookie() Return a cookie for this MBean. This cookie will be passed to MBean method invocations where it can supply additional information to the invocation. For example, with MXBeans it can be used to supply the MXBeanLookup context for resolving inter-MXBean references. | |
| getMBeanInfo | back to summary |
|---|---|
| public MBeanInfo getMBeanInfo() Implements javax. Doc from javax. Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object. | |
| getMBeanInterface | back to summary |
|---|---|
| public final Class | |
| getMBeanIntrospector | back to summary |
|---|---|
| pack-priv abstract MBeanIntrospector Return the appropriate introspector for this type of MBean. | |
| getResource | back to summary |
|---|---|
| public final Object getResource() Implements com. Doc from com. The resource corresponding to this MBean. This is the object whose class name should be reflected by the MBean's getMBeanInfo().getClassName() for example. For a "plain" DynamicMBean it will be "this". For an MBean that wraps another object, like javax.management.StandardMBean, it will be the wrapped object. | |
| invoke | back to summary |
|---|---|
| public final Object invoke(String operation, Object[] params, String[] signature) throws MBeanException, ReflectionException Implements javax. Doc from javax. Allows an action to be invoked on the Dynamic MBean.
| |
| isMXBean | back to summary |
|---|---|
| public final boolean isMXBean() | |
| postDeregister | back to summary |
|---|---|
| public final void postDeregister() Implements javax. Doc from javax. Allows the MBean to perform any operations needed after having been unregistered in the MBean server. If the implementation of this method throws a This might be confusing for the code calling
| |
| postRegister | back to summary |
|---|---|
| public final void postRegister(Boolean registrationDone) Implements javax. Doc from javax. Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. If the implementation of this method throws a This might be confusing for the code calling | |
| preDeregister | back to summary |
|---|---|
| public final void preDeregister() throws Exception Implements javax. Doc from javax. Allows the MBean to perform any operations it needs before being unregistered by the MBean server.
| |
| preRegister | back to summary |
|---|---|
| public final ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception Implements javax. Doc from javax. Allows the MBean to perform any operations it needs before being registered in the MBean Server. If the name of the MBean is not specified, the MBean can provide a name for its registration. If any exception is raised, the MBean will not be registered in the MBean Server.
| |
| preRegister2 | back to summary |
|---|---|
| public final void preRegister2(MBeanServer server, ObjectName name) throws Exception Implements com. Doc from com. Additional registration hook. This method is called after
| |
| register | back to summary |
|---|---|
| public abstract void register(MBeanServer mbs, ObjectName name) throws Exception | |
| registerFailed | back to summary |
|---|---|
| public final void registerFailed() Implements com. Doc from com. Additional registration hook. This method is called if preRegister and preRegister2 succeed, but then the MBean cannot be registered (for example because there is already another MBean of the same name). | |
| setAttribute | back to summary |
|---|---|
| public final void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException Implements javax. Doc from javax. Set the value of a specific attribute of the Dynamic MBean.
| |
| setAttributes | back to summary |
|---|---|
| public final AttributeList setAttributes(AttributeList attributes) Implements javax. Doc from javax. Sets the values of several attributes of the Dynamic MBean. | |
| unregister | back to summary |
|---|---|
| public abstract void unregister() | |