public class TezProcessorContextImpl extends TezTaskContextImpl implements org.apache.tez.runtime.api.ProcessorContext
descriptor, initialMemoryDistributor, runtimeTask, taskAttemptID, taskVertexName, tezUmbilical| Constructor and Description |
|---|
TezProcessorContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String vertexName,
int vertexParallelism,
org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
org.apache.tez.common.counters.TezCounters counters,
org.apache.tez.dag.api.UserPayload userPayload,
RuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
org.apache.tez.dag.api.ProcessorDescriptor processorDescriptor,
InputReadyTracker inputReadyTracker,
org.apache.tez.runtime.api.ObjectRegistry objectRegistry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCommit() |
void |
fatalError(Throwable exception,
String message) |
org.apache.tez.dag.api.UserPayload |
getUserPayload() |
void |
sendEvents(List<org.apache.tez.runtime.api.Event> events) |
void |
setProgress(float progress) |
void |
waitForAllInputsReady(Collection<org.apache.tez.runtime.api.Input> inputs) |
org.apache.tez.runtime.api.Input |
waitForAnyInputReady(Collection<org.apache.tez.runtime.api.Input> inputs) |
getApplicationId, getCounters, getDAGAttemptNumber, getDAGName, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getVertexParallelism, getWorkDirs, requestInitialMemory, signalFatalErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationId, getCounters, getDAGAttemptNumber, getDAGName, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getVertexParallelism, getWorkDirs, requestInitialMemorypublic TezProcessorContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String vertexName,
int vertexParallelism,
org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
org.apache.tez.common.counters.TezCounters counters,
@Nullable
org.apache.tez.dag.api.UserPayload userPayload,
RuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
org.apache.tez.dag.api.ProcessorDescriptor processorDescriptor,
InputReadyTracker inputReadyTracker,
org.apache.tez.runtime.api.ObjectRegistry objectRegistry)
public void sendEvents(List<org.apache.tez.runtime.api.Event> events)
sendEvents in interface org.apache.tez.runtime.api.TaskContextpublic org.apache.tez.dag.api.UserPayload getUserPayload()
getUserPayload in interface org.apache.tez.runtime.api.TaskContextpublic void setProgress(float progress)
setProgress in interface org.apache.tez.runtime.api.ProcessorContextpublic void fatalError(Throwable exception, String message)
fatalError in interface org.apache.tez.runtime.api.TaskContextpublic boolean canCommit()
throws IOException
canCommit in interface org.apache.tez.runtime.api.ProcessorContextIOExceptionpublic org.apache.tez.runtime.api.Input waitForAnyInputReady(Collection<org.apache.tez.runtime.api.Input> inputs) throws InterruptedException
waitForAnyInputReady in interface org.apache.tez.runtime.api.ProcessorContextInterruptedExceptionpublic void waitForAllInputsReady(Collection<org.apache.tez.runtime.api.Input> inputs) throws InterruptedException
waitForAllInputsReady in interface org.apache.tez.runtime.api.ProcessorContextInterruptedExceptionCopyright © 2014 Apache Software Foundation. All rights reserved.