Package org.apache.cassandra.repair
Class RepairRunnable
- java.lang.Object
-
- org.apache.cassandra.repair.RepairRunnable
-
- All Implemented Interfaces:
java.lang.Runnable,RepairNotifier,ProgressEventNotifier
public class RepairRunnable extends java.lang.Object implements java.lang.Runnable, ProgressEventNotifier, RepairNotifier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepairRunnable.NeighborsAndRanges
-
Field Summary
Fields Modifier and Type Field Description CoordinatorStatestate
-
Constructor Summary
Constructors Constructor Description RepairRunnable(StorageService storageService, int cmd, RepairOption options, java.lang.String keyspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProgressListener(ProgressListener listener)Register progress listener to this publisher.protected voidfireProgressEvent(ProgressEvent event)voidnotification(java.lang.String msg)voidnotifyError(java.lang.Throwable error)voidnotifyProgress(java.lang.String message)voidremoveProgressListener(ProgressListener listener)Remove progress listener from this publisher.voidrun()
-
-
-
Field Detail
-
state
public final CoordinatorState state
-
-
Constructor Detail
-
RepairRunnable
public RepairRunnable(StorageService storageService, int cmd, RepairOption options, java.lang.String keyspace)
-
-
Method Detail
-
addProgressListener
public void addProgressListener(ProgressListener listener)
Description copied from interface:ProgressEventNotifierRegister progress listener to this publisher.- Specified by:
addProgressListenerin interfaceProgressEventNotifier- Parameters:
listener- listener to register.
-
removeProgressListener
public void removeProgressListener(ProgressListener listener)
Description copied from interface:ProgressEventNotifierRemove progress listener from this publisher.- Specified by:
removeProgressListenerin interfaceProgressEventNotifier- Parameters:
listener- listener to remove
-
fireProgressEvent
protected void fireProgressEvent(ProgressEvent event)
-
notification
public void notification(java.lang.String msg)
- Specified by:
notificationin interfaceRepairNotifier
-
notifyError
public void notifyError(java.lang.Throwable error)
- Specified by:
notifyErrorin interfaceRepairNotifier
-
notifyProgress
public void notifyProgress(java.lang.String message)
- Specified by:
notifyProgressin interfaceRepairNotifier
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
-