public class TaskCommitContextRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TaskCommitContextRegistry.TaskCommitterProxy
Implement this interface to register call-backs for committing TaskAttempts.
|
Modifier and Type | Method and Description |
---|---|
void |
abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Trigger abort for TaskAttempt, as specified by the TaskAttemptContext argument.
|
void |
commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Trigger commit for TaskAttempt, as specified by the TaskAttemptContext argument.
|
void |
discardCleanupFor(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Method to discard the committer call-backs for a specified TaskAttemptID.
|
static TaskCommitContextRegistry |
getInstance()
Singleton instance getter.
|
void |
register(org.apache.hadoop.mapreduce.TaskAttemptContext context,
TaskCommitContextRegistry.TaskCommitterProxy committer)
Method to register call-backs to control commits and aborts of TaskAttempts.
|
public static TaskCommitContextRegistry getInstance()
public void commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
IOException
public void abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
IOException
public void register(org.apache.hadoop.mapreduce.TaskAttemptContext context, TaskCommitContextRegistry.TaskCommitterProxy committer) throws IOException
context
- The TaskAttemptContext instance for the task-attempt, identifying the output.committer
- Instance of TaskCommitterProxy, to commit/abort a TaskAttempt.IOException
- On failure.public void discardCleanupFor(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
context
- The TaskAttemptContext instance for the task-attempt, identifying the output.IOException
- On failure.Copyright © 2017 The Apache Software Foundation. All rights reserved.