Package org.apache.cassandra.repair
Class RepairCoordinator
java.lang.Object
org.apache.cassandra.repair.RepairCoordinator
- All Implemented Interfaces:
Runnable,RepairNotifier,ProgressEventNotifier
public class RepairCoordinator
extends Object
implements Runnable, ProgressEventNotifier, RepairNotifier
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicReference<Throwable>final CoordinatorState -
Constructor Summary
ConstructorsConstructorDescriptionRepairCoordinator(StorageService storageService, int cmd, RepairOption options, String keyspace) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressListener(ProgressListener listener) Register progress listener to this publisher.protected voidprotected voidfireProgressEvent(ProgressEvent event) voidnotification(String msg) voidnotifyError(Throwable error) voidnotifyProgress(String message) voidremoveProgressListener(ProgressListener listener) Remove progress listener from this publisher.voidrun()
-
Field Details
-
state
-
firstError
-
-
Constructor Details
-
RepairCoordinator
public RepairCoordinator(StorageService storageService, int cmd, RepairOption options, String keyspace)
-
-
Method Details
-
addProgressListener
Description copied from interface:ProgressEventNotifierRegister progress listener to this publisher.- Specified by:
addProgressListenerin interfaceProgressEventNotifier- Parameters:
listener- listener to register.
-
removeProgressListener
Description copied from interface:ProgressEventNotifierRemove progress listener from this publisher.- Specified by:
removeProgressListenerin interfaceProgressEventNotifier- Parameters:
listener- listener to remove
-
fireProgressEvent
-
notification
- Specified by:
notificationin interfaceRepairNotifier
-
notifyError
- Specified by:
notifyErrorin interfaceRepairNotifier
-
notifyProgress
- Specified by:
notifyProgressin interfaceRepairNotifier
-
fail
-
run
public void run()
-