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