public interface ExternalSynchronization
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
TaskAttemptID |
acquireTaskAttemptIdLock(Configuration conf,
int taskId)
Creates unique
TaskAttemptID for given taskId. |
TaskID |
acquireTaskIdLock(Configuration conf)
Creates
TaskID with unique id among given job. |
void |
releaseJobIdLock(Configuration conf)
Deletes lock ids bounded with given job if any exists.
|
boolean |
tryAcquireJobLock(Configuration conf)
Tries to acquire lock for given job.
|
boolean tryAcquireJobLock(Configuration conf)
conf - configuration bounded with given job.true if the lock was acquired, false otherwise.void releaseJobIdLock(Configuration conf)
conf - hadoop configuration of given job.TaskID acquireTaskIdLock(Configuration conf)
TaskID with unique id among given job.conf - hadoop configuration of given job.TaskID with unique id among given job.TaskAttemptID acquireTaskAttemptIdLock(Configuration conf, int taskId)
TaskAttemptID for given taskId.conf - configuration of given task and jobtaskId - id of the taskTaskAttemptID for given taskId.