public abstract class TezTaskContextImpl extends Object implements org.apache.tez.runtime.api.TaskContext
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.tez.dag.api.EntityDescriptor<?> |
descriptor |
protected MemoryDistributor |
initialMemoryDistributor |
protected RuntimeTask |
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,
RuntimeTask 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) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId() |
org.apache.tez.common.counters.TezCounters |
getCounters() |
int |
getDAGAttemptNumber() |
String |
getDAGName() |
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 |
requestInitialMemory(long size,
org.apache.tez.runtime.api.MemoryUpdateCallback callbackHandler) |
protected void |
signalFatalError(Throwable t,
String message,
EventMetaData sourceInfo) |
protected final String taskVertexName
protected final org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID
protected final RuntimeTask runtimeTask
protected final TezUmbilical tezUmbilical
protected final 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,
RuntimeTask 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)
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 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 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)
Copyright © 2014 Apache Software Foundation. All rights reserved.