Class JMXNotificationProgressListener
java.lang.Object
org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener
- All Implemented Interfaces:
EventListener,NotificationListener,ProgressListener
- Direct Known Subclasses:
BootstrapMonitor,RepairRunner
public abstract class JMXNotificationProgressListener
extends Object
implements ProgressListener, NotificationListener
JMXNotificationProgressListener uses JMX Notification API to convert JMX Notification message to progress event
and notifies its
ProgressListeners.
This is to be implemented in client tools side.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleConnectionClosed(long timestamp, String message) Called when JMX connection is closed.voidhandleConnectionFailed(long timestamp, String message) Called when JMX connection is failed.voidhandleNotification(Notification notification, Object handback) voidhandleNotificationLost(long timestamp, String message) Called when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.abstract booleanisInterestedIn(String tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.progress.ProgressListener
progress
-
Constructor Details
-
JMXNotificationProgressListener
public JMXNotificationProgressListener()
-
-
Method Details
-
isInterestedIn
- Parameters:
tag- tag name to be checked- Returns:
- true if given tag for ProgressEvent is a target to consume. If this returns false, then
ProgressListener.progress(java.lang.String, org.apache.cassandra.utils.progress.ProgressEvent)is not called for that event.
-
handleNotificationLost
Called when receivingJMXConnectionNotification.NOTIFS_LOSTmessage. -
handleConnectionClosed
Called when JMX connection is closed. Specifically whenJMXConnectionNotification.CLOSEDmessage is received. -
handleConnectionFailed
Called when JMX connection is failed. Specifically whenJMXConnectionNotification.FAILEDmessage is received. -
handleNotification
- Specified by:
handleNotificationin interfaceNotificationListener
-