public class TezProcessorContextImpl extends TezTaskContextImpl implements 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,
TezTaskAttemptID taskAttemptID,
UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
ProcessorDescriptor processorDescriptor,
InputReadyTracker inputReadyTracker,
ObjectRegistry objectRegistry,
ExecutionContext ExecutionContext,
long memAvailable,
TezExecutors sharedExecutor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCommit() |
void |
close() |
void |
fatalError(Throwable exception,
String message) |
UserPayload |
getUserPayload() |
void |
killSelf(Throwable exception,
String message) |
void |
reportFailure(TaskFailureType taskFailureType,
Throwable exception,
String message) |
void |
sendEvents(List<Event> events) |
void |
setProgressInternally(float progress) |
void |
waitForAllInputsReady(Collection<Input> inputs) |
boolean |
waitForAllInputsReady(Collection<Input> inputs,
long timeoutMillis) |
Input |
waitForAnyInputReady(Collection<Input> inputs) |
Input |
waitForAnyInputReady(Collection<Input> inputs,
long timeoutMillis) |
createTezFrameworkExecutorService, getApplicationId, getContainerConfiguration, getCounters, getDAGAttemptNumber, getDagIdentifier, getDAGName, getExecutionContext, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getVertexParallelism, getWorkDirs, notifyProgress, requestInitialMemory, signalFailure, signalFatalError, signalKillSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreProcessProgress, setProgresscreateTezFrameworkExecutorService, getApplicationId, getContainerConfiguration, getCounters, getDAGAttemptNumber, getDagIdentifier, getDAGName, getExecutionContext, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getVertexParallelism, getWorkDirs, notifyProgress, requestInitialMemorypublic TezProcessorContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String vertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
@Nullable
UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
ProcessorDescriptor processorDescriptor,
InputReadyTracker inputReadyTracker,
ObjectRegistry objectRegistry,
ExecutionContext ExecutionContext,
long memAvailable,
TezExecutors sharedExecutor)
public void sendEvents(List<Event> events)
sendEvents in interface TaskContextpublic UserPayload getUserPayload()
getUserPayload in interface TaskContextpublic void setProgressInternally(float progress)
setProgressInternally in interface ProcessorContextpublic void fatalError(Throwable exception, String message)
fatalError in interface TaskContextpublic void reportFailure(TaskFailureType taskFailureType, @Nullable Throwable exception, @Nullable String message)
reportFailure in interface TaskContextpublic void killSelf(@Nullable Throwable exception, @Nullable String message)
killSelf in interface TaskContextpublic boolean canCommit()
throws IOException
canCommit in interface ProcessorContextIOExceptionpublic Input waitForAnyInputReady(Collection<Input> inputs) throws InterruptedException
waitForAnyInputReady in interface ProcessorContextInterruptedExceptionpublic Input waitForAnyInputReady(Collection<Input> inputs, long timeoutMillis) throws InterruptedException
waitForAnyInputReady in interface ProcessorContextInterruptedExceptionpublic void waitForAllInputsReady(Collection<Input> inputs) throws InterruptedException
waitForAllInputsReady in interface ProcessorContextInterruptedExceptionpublic boolean waitForAllInputsReady(Collection<Input> inputs, long timeoutMillis) throws InterruptedException
waitForAllInputsReady in interface ProcessorContextInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class TezTaskContextImplIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.