Package org.glassfish.external.amx
Class AMXGlassfish.BootAMXCallback
- java.lang.Object
-
- org.glassfish.external.amx.MBeanListener.CallbackImpl
-
- org.glassfish.external.amx.AMXGlassfish.BootAMXCallback
-
- All Implemented Interfaces:
MBeanListener.Callback
- Enclosing class:
- AMXGlassfish
public static class AMXGlassfish.BootAMXCallback extends MBeanListener.CallbackImpl
Callback forMBeanListener
that waits for the BootAMXMBean to appear; it always will load early in server startup. Once it has loaded, AMX can be booted viaAMXGlassfish.bootAMX(javax.management.MBeanServerConnection)
. A client should normally just callAMXGlassfish.bootAMX(javax.management.MBeanServerConnection)
, but this callback may be suclassed if desired, and used as a trigger to boot AMX and then take other dependent actions.
-
-
Field Summary
-
Fields inherited from class org.glassfish.external.amx.MBeanListener.CallbackImpl
mLatch
-
-
Constructor Summary
Constructors Constructor Description BootAMXCallback(MBeanServerConnection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mbeanRegistered(ObjectName objectName, MBeanListener listener)
-
Methods inherited from class org.glassfish.external.amx.MBeanListener.CallbackImpl
await, getRegistered, getUnregistered, mbeanUnregistered
-
-
-
-
Constructor Detail
-
BootAMXCallback
public BootAMXCallback(MBeanServerConnection conn)
-
-
Method Detail
-
mbeanRegistered
public void mbeanRegistered(ObjectName objectName, MBeanListener listener)
- Specified by:
mbeanRegistered
in interfaceMBeanListener.Callback
- Overrides:
mbeanRegistered
in classMBeanListener.CallbackImpl
-
-