public abstract class RuntimeTask extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RuntimeTask.State |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
eventCounter |
protected AtomicReference<Throwable> |
fatalError |
protected String |
fatalErrorMessage |
protected AtomicBoolean |
hasFatalError |
protected AtomicInteger |
nextFromEventId |
protected AtomicInteger |
nextPreRoutedEventId |
protected float |
progress |
protected AtomicReference<RuntimeTask.State> |
state |
protected TaskSpec |
taskSpec |
protected org.apache.hadoop.conf.Configuration |
tezConf |
protected org.apache.tez.common.counters.TezCounters |
tezCounters |
protected TezUmbilical |
tezUmbilical |
| Modifier | Constructor and Description |
|---|---|
protected |
RuntimeTask(TaskSpec taskSpec,
org.apache.hadoop.conf.Configuration tezConf,
TezUmbilical tezUmbilical,
String pid) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tez.common.counters.TezCounters |
addAndGetTezCounter(String name) |
boolean |
getAndClearProgressNotification() |
org.apache.tez.common.counters.TezCounters |
getCounters() |
int |
getEventCounter() |
Throwable |
getFatalError() |
abstract int |
getMaxEventsToHandle() |
int |
getNextFromEventId() |
int |
getNextPreRoutedEventId() |
float |
getProgress() |
org.apache.tez.dag.records.TezTaskAttemptID |
getTaskAttemptID() |
TaskStatistics |
getTaskStatistics() |
String |
getVertexName() |
boolean |
hadFatalError() |
abstract void |
handleEvents(Collection<TezEvent> events) |
boolean |
hasInitialized() |
boolean |
isTaskDone() |
void |
notifyProgressInvocation() |
void |
setFatalError(Throwable t,
String message) |
void |
setFrameworkCounters() |
void |
setNextFromEventId(int nextFromEventId) |
void |
setNextPreRoutedEventId(int nextPreRoutedEventId) |
void |
setProgress(float progress) |
protected void |
setTaskDone() |
protected AtomicBoolean hasFatalError
protected AtomicReference<Throwable> fatalError
protected String fatalErrorMessage
protected float progress
protected final org.apache.tez.common.counters.TezCounters tezCounters
protected final TaskSpec taskSpec
protected final org.apache.hadoop.conf.Configuration tezConf
protected final TezUmbilical tezUmbilical
protected final AtomicInteger eventCounter
protected final AtomicInteger nextFromEventId
protected final AtomicInteger nextPreRoutedEventId
protected final AtomicReference<RuntimeTask.State> state
protected RuntimeTask(TaskSpec taskSpec, org.apache.hadoop.conf.Configuration tezConf, TezUmbilical tezUmbilical, String pid)
public org.apache.tez.common.counters.TezCounters addAndGetTezCounter(String name)
public boolean hasInitialized()
public String getVertexName()
public final void notifyProgressInvocation()
public boolean getAndClearProgressNotification()
public Throwable getFatalError()
public boolean hadFatalError()
public void setProgress(float progress)
public float getProgress()
public org.apache.tez.common.counters.TezCounters getCounters()
public TaskStatistics getTaskStatistics()
public org.apache.tez.dag.records.TezTaskAttemptID getTaskAttemptID()
public abstract int getMaxEventsToHandle()
public abstract void handleEvents(Collection<TezEvent> events)
public int getEventCounter()
public int getNextFromEventId()
public int getNextPreRoutedEventId()
public void setNextFromEventId(int nextFromEventId)
public void setNextPreRoutedEventId(int nextPreRoutedEventId)
public boolean isTaskDone()
public void setFrameworkCounters()
protected void setTaskDone()
Copyright © 2016 Apache Software Foundation. All rights reserved.