public abstract class TezTaskContextImpl extends Object implements TaskContext, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected EntityDescriptor<?> |
descriptor |
protected MemoryDistributor |
initialMemoryDistributor |
protected LogicalIOProcessorRuntimeTask |
runtimeTask |
protected TezTaskAttemptID |
taskAttemptID |
protected String |
taskVertexName |
protected TezUmbilical |
tezUmbilical |
| Constructor and Description |
|---|
TezTaskContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
String dagName,
String taskVertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
TezCounters counters,
LogicalIOProcessorRuntimeTask runtimeTask,
TezUmbilical tezUmbilical,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
EntityDescriptor<?> descriptor,
ObjectRegistry objectRegistry,
ExecutionContext ExecutionContext,
long memAvailable,
TezExecutors sharedExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfatalError, getUserPayload, killSelf, reportFailure, sendEventsprotected final String taskVertexName
protected final TezTaskAttemptID taskAttemptID
protected final LogicalIOProcessorRuntimeTask runtimeTask
protected final TezUmbilical tezUmbilical
protected volatile MemoryDistributor initialMemoryDistributor
protected final EntityDescriptor<?> descriptor
@InterfaceAudience.Private
public TezTaskContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
String dagName,
String taskVertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
TezCounters counters,
LogicalIOProcessorRuntimeTask runtimeTask,
TezUmbilical tezUmbilical,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
EntityDescriptor<?> descriptor,
ObjectRegistry objectRegistry,
ExecutionContext ExecutionContext,
long memAvailable,
TezExecutors sharedExecutor)
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
getApplicationId in interface TaskContextpublic int getTaskIndex()
getTaskIndex in interface TaskContextpublic int getDAGAttemptNumber()
getDAGAttemptNumber in interface TaskContextpublic int getTaskAttemptNumber()
getTaskAttemptNumber in interface TaskContextpublic org.apache.hadoop.conf.Configuration getContainerConfiguration()
getContainerConfiguration in interface TaskContextpublic String getDAGName()
getDAGName in interface TaskContextpublic String getTaskVertexName()
getTaskVertexName in interface TaskContextpublic int getTaskVertexIndex()
getTaskVertexIndex in interface TaskContextpublic int getDagIdentifier()
getDagIdentifier in interface TaskContextpublic TezCounters getCounters()
getCounters in interface TaskContextpublic int getVertexParallelism()
getVertexParallelism in interface TaskContextpublic String[] getWorkDirs()
getWorkDirs in interface TaskContextpublic String getUniqueIdentifier()
getUniqueIdentifier in interface TaskContextpublic ObjectRegistry getObjectRegistry()
getObjectRegistry in interface TaskContextpublic final void notifyProgress()
notifyProgress in interface TaskContextpublic ByteBuffer getServiceConsumerMetaData(String serviceName)
getServiceConsumerMetaData in interface TaskContext@Nullable public ByteBuffer getServiceProviderMetaData(String serviceName)
getServiceProviderMetaData in interface TaskContextpublic void requestInitialMemory(long size,
MemoryUpdateCallback callbackHandler)
requestInitialMemory in interface TaskContextpublic long getTotalMemoryAvailableToTask()
getTotalMemoryAvailableToTask in interface TaskContextprotected void signalFatalError(Throwable t, String message, EventMetaData sourceInfo)
protected void signalFailure(TaskFailureType taskFailureType, Throwable t, String message, EventMetaData sourceInfo)
protected void signalKillSelf(Throwable t, String message, EventMetaData sourceInfo)
public ExecutionContext getExecutionContext()
getExecutionContext in interface TaskContextpublic ExecutorService createTezFrameworkExecutorService(int parallelism, String threadNameFormat)
createTezFrameworkExecutorService in interface TaskContextpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.