Package org.apache.cassandra.tools
Class RepairRunner
java.lang.Object
org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener
org.apache.cassandra.tools.RepairRunner
- All Implemented Interfaces:
EventListener,NotificationListener,ProgressListener
-
Constructor Summary
ConstructorsConstructorDescriptionRepairRunner(PrintStream out, StorageServiceMBean ssProxy, String keyspace, Map<String, String> options) -
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.voidhandleNotificationLost(long timestamp, String message) Called when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.booleanisInterestedIn(String tag) voidprogress(String tag, ProgressEvent event) Called when some progress is made by progress publisher.voidrun()Methods inherited from class org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener
handleNotification
-
Constructor Details
-
RepairRunner
public RepairRunner(PrintStream out, StorageServiceMBean ssProxy, String keyspace, Map<String, String> options)
-
-
Method Details
-
run
- Throws:
Exception
-
isInterestedIn
- Specified by:
isInterestedInin classJMXNotificationProgressListener- 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
Description copied from class:JMXNotificationProgressListenerCalled when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.- Overrides:
handleNotificationLostin classJMXNotificationProgressListener
-
handleConnectionClosed
Description copied from class:JMXNotificationProgressListenerCalled when JMX connection is closed. Specifically whenJMXConnectionNotification.CLOSEDmessage is received.- Overrides:
handleConnectionClosedin classJMXNotificationProgressListener
-
handleConnectionFailed
Description copied from class:JMXNotificationProgressListenerCalled when JMX connection is failed. Specifically whenJMXConnectionNotification.FAILEDmessage is received.- Overrides:
handleConnectionFailedin classJMXNotificationProgressListener
-
progress
Description copied from interface:ProgressListenerCalled when some progress is made by progress publisher.- Parameters:
tag- String that identifies progress event.event- Current progress
-