Class JMXNotificationProgressListener
- java.lang.Object
-
- org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener
-
- All Implemented Interfaces:
java.util.EventListener,javax.management.NotificationListener,ProgressListener
- Direct Known Subclasses:
BootstrapMonitor,RepairRunner
public abstract class JMXNotificationProgressListener extends java.lang.Object implements ProgressListener, javax.management.NotificationListener
JMXNotificationProgressListener uses JMX Notification API to convert JMX Notification message to progress event and notifies itsProgressListeners. This is to be implemented in client tools side.
-
-
Constructor Summary
Constructors Constructor Description JMXNotificationProgressListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidhandleConnectionClosed(long timestamp, java.lang.String message)Called when JMX connection is closed.voidhandleConnectionFailed(long timestamp, java.lang.String message)Called when JMX connection is failed.voidhandleNotification(javax.management.Notification notification, java.lang.Object handback)voidhandleNotificationLost(long timestamp, java.lang.String message)Called when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.abstract booleanisInterestedIn(java.lang.String tag)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.utils.progress.ProgressListener
progress
-
-
-
-
Method Detail
-
isInterestedIn
public abstract boolean isInterestedIn(java.lang.String tag)
- 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
public void handleNotificationLost(long timestamp, java.lang.String message)Called when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.
-
handleConnectionClosed
public void handleConnectionClosed(long timestamp, java.lang.String message)Called when JMX connection is closed. Specifically whenJMXConnectionNotification.CLOSEDmessage is received.
-
handleConnectionFailed
public void handleConnectionFailed(long timestamp, java.lang.String message)Called when JMX connection is failed. Specifically whenJMXConnectionNotification.FAILEDmessage is received.
-
handleNotification
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)- Specified by:
handleNotificationin interfacejavax.management.NotificationListener
-
-