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