This is designed for internal customer use to create this MBean dynamically from an agent which will then register all internal MBeans to the platform MBeanServer.
Modifier and Type | Field and Description |
---|---|
private static final String | |
private static ObjectName | |
private MBeanServer |
Access | Constructor and Description |
---|---|
public | HotspotInternal()
Default constructor that registers all hotspot internal MBeans to the MBeanServer that creates this MBean. |
Modifier and Type | Method and Description |
---|---|
public void | postDeregister()
Implements javax. Allows the MBean to perform any operations needed after having been unregistered in the MBean server. |
public void | postRegister(Boolean
Indicates whether or not the MBean has
been successfully registered in the MBean server. The value
false means that the registration phase has failed. 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 void | preDeregister()
Implements javax. Allows the MBean to perform any operations it needs before being unregistered by the MBean server. |
public ObjectName | preRegister(MBeanServer
The MBean Server in which the MBean will be registered. server, ObjectName The object name of the MBean. This name is null if
the name parameter to one of the name)createMBean or
registerMBean methods in the MBeanServer
interface is null. In that case, this method must return a
non-null ObjectName for the new MBean.Implements javax. Allows the MBean to perform any operations it needs before being registered in the MBean Server. |
HOTSPOT_INTERNAL_MBEAN_NAME | back to summary |
---|---|
private static final String HOTSPOT_INTERNAL_MBEAN_NAME |
objName | back to summary |
---|---|
private static ObjectName objName |
server | back to summary |
---|---|
private MBeanServer server |
HotspotInternal | back to summary |
---|---|
public HotspotInternal() Default constructor that registers all hotspot internal MBeans to the MBeanServer that creates this MBean. |
postDeregister | back to summary |
---|---|
public 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 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 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 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.
|