public class TaskReporter extends Object
| Constructor and Description |
|---|
TaskReporter(TezTaskUmbilicalProtocol umbilical,
long amPollInterval,
long sendCounterInterval,
int maxEventsToGet,
AtomicLong requestCounter,
String containerIdStr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvents(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
Collection<TezEvent> events) |
boolean |
canCommit(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID) |
void |
registerTask(RuntimeTask task,
ErrorReporter errorReporter)
Register a task to be tracked.
|
void |
shutdown() |
boolean |
taskFailed(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
Throwable t,
String diagnostics,
EventMetaData srcMeta) |
boolean |
taskSucceeded(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID) |
void |
unregisterTask(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID)
This method should always be invoked before setting up heartbeats for another task running in
the same container.
|
public TaskReporter(TezTaskUmbilicalProtocol umbilical, long amPollInterval, long sendCounterInterval, int maxEventsToGet, AtomicLong requestCounter, String containerIdStr)
public void registerTask(RuntimeTask task, ErrorReporter errorReporter)
public void unregisterTask(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID)
public void shutdown()
public boolean taskSucceeded(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID)
throws IOException,
org.apache.tez.dag.api.TezException
IOExceptionorg.apache.tez.dag.api.TezExceptionpublic boolean taskFailed(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
Throwable t,
String diagnostics,
EventMetaData srcMeta)
throws IOException,
org.apache.tez.dag.api.TezException
IOExceptionorg.apache.tez.dag.api.TezExceptionpublic void addEvents(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
Collection<TezEvent> events)
public boolean canCommit(org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID)
throws IOException
IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.