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