Interface ZKSplitLogManagerCoordination.TaskFinisher
- Enclosing class:
- ZKSplitLogManagerCoordination
public static interface ZKSplitLogManagerCoordination.TaskFinisher
SplitLogManager
can use objects implementing this
interface to finish off a partially done task by
SplitLogWorker
. This provides a serialization
point at the end of the task processing. Must be restartable and idempotent.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
status that can be returned finish() -
Method Summary
Modifier and TypeMethodDescriptionfinish
(ServerName workerName, String taskname) finish the partially done task.
-
Method Details
-
finish
finish the partially done task. workername provides clue to where the partial results of the partially done tasks are present. taskname is the name of the task that was put up in zookeeper.- Returns:
- DONE if task completed successfully, ERR otherwise
-