Package org.glassfish.external.amx
Class MBeanListener.CallbackImpl
java.lang.Object
org.glassfish.external.amx.MBeanListener.CallbackImpl
- All Implemented Interfaces:
MBeanListener.Callback
- Direct Known Subclasses:
AMXGlassfish.BootAMXCallback
- Enclosing class:
- MBeanListener<T extends MBeanListener.Callback>
Default callback implementation, can be subclassed if needed
Remembers only the last MBean that was seen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()Optional: wait for the CountDownLatch to fire If used, the subclass should countDown() the latch when the appropriate event happensvoidmbeanRegistered(ObjectName objectName, MBeanListener listener) voidmbeanUnregistered(ObjectName objectName, MBeanListener listener)
-
Field Details
-
mLatch
-
-
Constructor Details
-
CallbackImpl
public CallbackImpl() -
CallbackImpl
public CallbackImpl(boolean stopAtFirst)
-
-
Method Details
-
getRegistered
-
getUnregistered
-
await
public void await()Optional: wait for the CountDownLatch to fire If used, the subclass should countDown() the latch when the appropriate event happens -
mbeanRegistered
- Specified by:
mbeanRegisteredin interfaceMBeanListener.Callback
-
mbeanUnregistered
- Specified by:
mbeanUnregisteredin interfaceMBeanListener.Callback
-