public class TaskSchedulerContextImpl extends Object implements org.apache.tez.serviceplugins.api.TaskSchedulerContext
| Constructor and Description |
|---|
TaskSchedulerContextImpl(TaskSchedulerManager taskSchedulerManager,
AppContext appContext,
int schedulerId,
String trackingUrl,
long customClusterIdentifier,
String appHostname,
int clientPort,
org.apache.tez.dag.api.UserPayload initialUserPayload) |
| Modifier and Type | Method and Description |
|---|---|
void |
appShutdownRequested() |
void |
containerBeingReleased(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
void |
containerCompleted(Object taskLastAllocated,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus) |
org.apache.tez.serviceplugins.api.TaskSchedulerContext.AMState |
getAMState() |
int |
getAppClientPort() |
String |
getAppHostName() |
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
String |
getAppTrackingUrl() |
org.apache.tez.common.ContainerSignatureMatcher |
getContainerSignatureMatcher() |
org.apache.tez.serviceplugins.api.DagInfo |
getCurrentDagInfo() |
long |
getCustomClusterIdentifier() |
org.apache.tez.serviceplugins.api.TaskSchedulerContext.AppFinalStatus |
getFinalAppStatus() |
org.apache.tez.dag.api.UserPayload |
getInitialUserPayload() |
float |
getProgress() |
int |
getVertexIndexForTask(Object task) |
boolean |
isSession() |
void |
nodesUpdated(List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes) |
void |
preemptContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
void |
reportError(org.apache.tez.serviceplugins.api.ServicePluginError servicePluginError,
String diagnostics,
org.apache.tez.serviceplugins.api.DagInfo dagInfo) |
void |
setApplicationRegistrationData(org.apache.hadoop.yarn.api.records.Resource maxContainerCapability,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls,
ByteBuffer clientAMSecretKey,
String queueName) |
void |
taskAllocated(Object task,
Object appCookie,
org.apache.hadoop.yarn.api.records.Container container) |
public TaskSchedulerContextImpl(TaskSchedulerManager taskSchedulerManager, AppContext appContext, int schedulerId, String trackingUrl, long customClusterIdentifier, String appHostname, int clientPort, org.apache.tez.dag.api.UserPayload initialUserPayload)
public void taskAllocated(Object task, Object appCookie, org.apache.hadoop.yarn.api.records.Container container)
taskAllocated in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void containerCompleted(Object taskLastAllocated, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus)
containerCompleted in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void containerBeingReleased(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerBeingReleased in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void nodesUpdated(List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes)
nodesUpdated in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void appShutdownRequested()
appShutdownRequested in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void setApplicationRegistrationData(org.apache.hadoop.yarn.api.records.Resource maxContainerCapability,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls,
ByteBuffer clientAMSecretKey,
String queueName)
setApplicationRegistrationData in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic float getProgress()
getProgress in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void preemptContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
preemptContainer in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic org.apache.tez.serviceplugins.api.TaskSchedulerContext.AppFinalStatus getFinalAppStatus()
getFinalAppStatus in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic org.apache.tez.dag.api.UserPayload getInitialUserPayload()
getInitialUserPayload in interface org.apache.tez.serviceplugins.api.ServicePluginContextBasepublic String getAppTrackingUrl()
getAppTrackingUrl in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic long getCustomClusterIdentifier()
getCustomClusterIdentifier in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic org.apache.tez.common.ContainerSignatureMatcher getContainerSignatureMatcher()
getContainerSignatureMatcher in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
getApplicationAttemptId in interface org.apache.tez.serviceplugins.api.TaskSchedulerContext@Nullable public org.apache.tez.serviceplugins.api.DagInfo getCurrentDagInfo()
getCurrentDagInfo in interface org.apache.tez.serviceplugins.api.ServicePluginContextBasepublic String getAppHostName()
getAppHostName in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic int getAppClientPort()
getAppClientPort in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic boolean isSession()
isSession in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic org.apache.tez.serviceplugins.api.TaskSchedulerContext.AMState getAMState()
getAMState in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic int getVertexIndexForTask(Object task)
getVertexIndexForTask in interface org.apache.tez.serviceplugins.api.TaskSchedulerContextpublic void reportError(org.apache.tez.serviceplugins.api.ServicePluginError servicePluginError,
String diagnostics,
org.apache.tez.serviceplugins.api.DagInfo dagInfo)
reportError in interface org.apache.tez.serviceplugins.api.ServicePluginContextBaseCopyright © 2019 Apache Software Foundation. All rights reserved.