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:
java.util.EventListener,javax.management.NotificationListener,ProgressListener
public class RepairRunner extends JMXNotificationProgressListener
-
-
Constructor Summary
Constructors Constructor Description RepairRunner(java.io.PrintStream out, StorageServiceMBean ssProxy, java.lang.String keyspace, java.util.Map<java.lang.String,java.lang.String> options)
-
Method Summary
All Methods Instance 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.voidhandleNotificationLost(long timestamp, java.lang.String message)Called when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.booleanisInterestedIn(java.lang.String tag)voidprogress(java.lang.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 Detail
-
RepairRunner
public RepairRunner(java.io.PrintStream out, StorageServiceMBean ssProxy, java.lang.String keyspace, java.util.Map<java.lang.String,java.lang.String> options)
-
-
Method Detail
-
run
public void run() throws java.lang.Exception- Throws:
java.lang.Exception
-
isInterestedIn
public boolean isInterestedIn(java.lang.String tag)
- 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
public void handleNotificationLost(long timestamp, java.lang.String message)Description copied from class:JMXNotificationProgressListenerCalled when receivingJMXConnectionNotification.NOTIFS_LOSTmessage.- Overrides:
handleNotificationLostin classJMXNotificationProgressListener
-
handleConnectionClosed
public void handleConnectionClosed(long timestamp, java.lang.String message)Description copied from class:JMXNotificationProgressListenerCalled when JMX connection is closed. Specifically whenJMXConnectionNotification.CLOSEDmessage is received.- Overrides:
handleConnectionClosedin classJMXNotificationProgressListener
-
handleConnectionFailed
public void handleConnectionFailed(long timestamp, java.lang.String message)Description copied from class:JMXNotificationProgressListenerCalled when JMX connection is failed. Specifically whenJMXConnectionNotification.FAILEDmessage is received.- Overrides:
handleConnectionFailedin classJMXNotificationProgressListener
-
progress
public void progress(java.lang.String tag, ProgressEvent event)Description copied from interface:ProgressListenerCalled when some progress is made by progress publisher.- Parameters:
tag- String that identifies progress event.event- Current progress
-
-