@InterfaceAudience.Private @Deprecated public interface SplitLogManagerCoordination
prepareTask(java.lang.String)
and submit it by
submitTask(String)
. After that it periodically check the number of remaining tasks by
remainingTasksInCoordination()
and waits until it become zero.
Methods required for task life circle:
checkTaskStillAvailable(String)
Check that task is still there
checkTasks()
check for unassigned tasks and resubmit them
Modifier and Type | Interface and Description |
---|---|
static class |
SplitLogManagerCoordination.SplitLogManagerDetails
Deprecated.
Detail class that shares data between coordination and split log manager
|
Modifier and Type | Method and Description |
---|---|
void |
checkTasks()
Deprecated.
tells Coordination that it should check for new tasks
|
void |
checkTaskStillAvailable(String task)
Deprecated.
Check that the task is still there
|
void |
deleteTask(String taskName)
Deprecated.
|
SplitLogManagerCoordination.SplitLogManagerDetails |
getDetails()
Deprecated.
Returns the configuration that was provided previously
|
void |
init()
Deprecated.
Support method to init constants such as timeout.
|
String |
prepareTask(String taskName)
Deprecated.
Prepare the new task
|
int |
remainingTasksInCoordination()
Deprecated.
Return the number of remaining tasks
|
boolean |
resubmitTask(String taskName,
SplitLogManager.Task task,
SplitLogManager.ResubmitDirective force)
Deprecated.
Resubmit the task in case if found unassigned or failed
|
void |
setDetails(SplitLogManagerCoordination.SplitLogManagerDetails details)
Deprecated.
Provide the configuration from the SplitLogManager
|
void |
submitTask(String taskName)
Deprecated.
|
void setDetails(SplitLogManagerCoordination.SplitLogManagerDetails details)
SplitLogManagerCoordination.SplitLogManagerDetails getDetails()
String prepareTask(String taskName)
taskName
- name of the taskvoid checkTasks()
int remainingTasksInCoordination()
void checkTaskStillAvailable(String task)
task
- node to checkboolean resubmitTask(String taskName, SplitLogManager.Task task, SplitLogManager.ResubmitDirective force)
taskName
- path related to tasktask
- to resubmitforce
- whether it should be forcedvoid submitTask(String taskName)
taskName
- to be submittedvoid deleteTask(String taskName)
taskName
- to be removedvoid init() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.