public class RepairRunnable extends java.lang.Object implements java.lang.Runnable, ProgressEventNotifier, RepairNotifier
Modifier and Type | Class and Description |
---|---|
static class |
RepairRunnable.NeighborsAndRanges |
Modifier and Type | Field and Description |
---|---|
CoordinatorState |
state |
Constructor and Description |
---|
RepairRunnable(StorageService storageService,
int cmd,
RepairOption options,
java.lang.String keyspace) |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(ProgressListener listener)
Register progress listener to this publisher.
|
protected void |
fireProgressEvent(ProgressEvent event) |
void |
notification(java.lang.String msg) |
void |
notifyError(java.lang.Throwable error) |
void |
notifyProgress(java.lang.String message) |
void |
removeProgressListener(ProgressListener listener)
Remove progress listener from this publisher.
|
void |
run() |
public final CoordinatorState state
public RepairRunnable(StorageService storageService, int cmd, RepairOption options, java.lang.String keyspace)
public void addProgressListener(ProgressListener listener)
ProgressEventNotifier
addProgressListener
in interface ProgressEventNotifier
listener
- listener to register.public void removeProgressListener(ProgressListener listener)
ProgressEventNotifier
removeProgressListener
in interface ProgressEventNotifier
listener
- listener to removeprotected void fireProgressEvent(ProgressEvent event)
public void notification(java.lang.String msg)
notification
in interface RepairNotifier
public void notifyError(java.lang.Throwable error)
notifyError
in interface RepairNotifier
public void notifyProgress(java.lang.String message)
notifyProgress
in interface RepairNotifier
public void run()
run
in interface java.lang.Runnable
Copyright © 2009- The Apache Software Foundation