SchedulableEntityFiCaSchedulerApp, FSAppAttempt@Private @Unstable public class SchedulerApplicationAttempt extends java.lang.Object implements SchedulableEntity
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SchedulerApplicationAttempt.AMState |
Different state for Application Master, user can see this state from web UI
|
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
appAMNodePartitionName |
|
protected AppSchedulingInfo |
appSchedulingInfo |
|
protected org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
attemptId |
|
protected ResourceUsage |
attemptOpportunisticResourceUsage |
Resource usage of opportunistic containers.
|
protected ResourceUsage |
attemptResourceUsage |
|
protected ResourceUsage |
attemptResourceUsageAllocatedRemotely |
Scheduled by a remote scheduler.
|
protected boolean |
isStopped |
|
protected long |
lastMemoryAggregateAllocationUpdateTime |
|
protected java.util.Map<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey,java.lang.Long> |
lastScheduledContainer |
|
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
liveContainers |
|
protected java.util.List<RMContainer> |
newlyAllocatedContainers |
|
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
newlyDecreasedContainers |
|
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
newlyDemotedContainers |
|
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
newlyIncreasedContainers |
|
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
newlyPromotedContainers |
|
protected Queue |
queue |
|
protected java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock |
readLock |
|
protected java.util.Map<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey,java.util.Map<org.apache.hadoop.yarn.api.records.NodeId,RMContainer>> |
reservedContainers |
|
protected RMContext |
rmContext |
|
protected java.util.List<RMContainer> |
tempContainerToKill |
|
protected java.util.List<org.apache.hadoop.yarn.api.records.UpdateContainerError> |
updateContainerErrors |
|
protected java.util.Set<org.apache.hadoop.yarn.api.records.NMToken> |
updatedNMTokens |
|
protected java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
writeLock |
| Constructor | Description |
|---|---|
SchedulerApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
java.lang.String user,
Queue queue,
AbstractUsersManager abstractUsersManager,
RMContext rmContext) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
addMissedNonPartitionedRequestSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
protected void |
addReReservation(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
void |
addRMContainer(org.apache.hadoop.yarn.api.records.ContainerId id,
RMContainer rmContainer) |
|
void |
addSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
protected void |
addToNewlyAllocatedContainers(SchedulerNode node,
RMContainer rmContainer) |
|
void |
addToNewlyDecreasedContainers(org.apache.hadoop.yarn.api.records.ContainerId containerId,
RMContainer rmContainer) |
|
void |
addToNewlyDemotedContainers(org.apache.hadoop.yarn.api.records.ContainerId containerId,
RMContainer rmContainer) |
|
protected void |
addToUpdateContainerErrors(org.apache.hadoop.yarn.api.records.UpdateContainerError error) |
|
int |
compareInputOrderTo(SchedulableEntity other) |
Compare the passed SchedulableEntity to this one for input order.
|
void |
containerLaunchedOnNode(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId) |
|
void |
decUnconfirmedRes(org.apache.hadoop.yarn.api.records.Resource res) |
|
boolean |
equals(java.lang.Object o) |
|
protected void |
getActivedAppDiagnosticMessage(java.lang.StringBuilder diagnosticMessage) |
|
org.apache.hadoop.yarn.api.records.Resource |
getAMResource() |
|
org.apache.hadoop.yarn.api.records.Resource |
getAMResource(java.lang.String label) |
|
java.lang.String |
getAppAMNodePartitionName() |
|
ResourceUsage |
getAppAttemptResourceUsage() |
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
Get
ApplicationAttemptId of the application master. |
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId() |
|
java.util.Map<java.lang.String,java.lang.String> |
getApplicationSchedulingEnvs() |
|
<N extends SchedulerNode> |
getAppPlacementAllocator(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerRequestKey) |
|
AppSchedulingInfo |
getAppSchedulingInfo() |
|
java.util.Set<java.lang.String> |
getBlacklistedNodes() |
|
org.apache.hadoop.yarn.api.records.Resource |
getCurrentConsumption() |
|
org.apache.hadoop.yarn.api.records.Resource |
getCurrentReservation() |
Get total current reservations.
|
org.apache.hadoop.yarn.api.records.Resource |
getHeadroom() |
Get available headroom in terms of resources for the application's user.
|
java.lang.String |
getId() |
Id - each entity must have a unique id.
|
java.util.Map<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey,java.lang.Long> |
getLastScheduledContainer() |
|
java.util.Collection<RMContainer> |
getLiveContainers() |
Get the live containers of the application.
|
java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> |
getLiveContainersMap() |
|
long |
getNewContainerId() |
|
int |
getNumReservedContainers(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerContext |
getOpportunisticContainerContext() |
|
int |
getOutstandingAsksCount(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
int |
getOutstandingAsksCount(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
java.lang.String resourceName) |
|
java.lang.String |
getPartition() |
Get partition corresponding to this entity.
|
protected void |
getPendingAppDiagnosticMessage(java.lang.StringBuilder diagnosticMessage) |
|
PendingAsk |
getPendingAsk(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
java.lang.String resourceName) |
|
java.util.Set<org.apache.hadoop.yarn.api.records.ContainerId> |
getPendingRelease() |
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
Get the priority of the application.
|
Queue |
getQueue() |
|
java.lang.String |
getQueueName() |
|
int |
getReReservations(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
java.util.List<RMContainer> |
getReservedContainers() |
Get the list of reserved containers
|
org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport |
getResourceUsageReport() |
|
RMContainer |
getRMContainer(org.apache.hadoop.yarn.api.records.ContainerId id) |
|
java.util.Collection<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey> |
getSchedulerKeys() |
|
int |
getSchedulingOpportunities(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
Return the number of times the application has been given an opportunity
to schedule a task at the given priority since the last time it
successfully did so.
|
ResourceUsage |
getSchedulingResourceUsage() |
View of Resources wanted and consumed by the entity.
|
long |
getStartTime() |
Start time of the job.
|
boolean |
getUnmanagedAM() |
|
ContainerUpdateContext |
getUpdateContext() |
|
java.lang.String |
getUser() |
|
java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
getWriteLock() |
|
int |
hashCode() |
|
boolean |
hasPendingResourceRequest(java.lang.String nodePartition,
SchedulingMode schedulingMode) |
|
void |
incNumAllocatedContainers(NodeType containerType,
NodeType requestType) |
|
void |
incUnconfirmedRes(org.apache.hadoop.yarn.api.records.Resource res) |
|
boolean |
isAmRunning() |
|
boolean |
isPending() |
Is this application pending?
|
boolean |
isPlaceBlacklisted(java.lang.String resourceName) |
|
boolean |
isPlaceBlackListedBasedOnLabels(java.lang.String resourceName) |
|
boolean |
isRecovering() |
Whether application was running before RM restart.
|
boolean |
isStopped() |
|
boolean |
isWaitingForAMContainer() |
|
void |
move(Queue newQueue) |
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyAllocatedContainers() |
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyDecreasedContainers() |
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyDemotedContainers() |
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyIncreasedContainers() |
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyPromotedContainers() |
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullPreviousAttemptContainers() |
Called when AM heartbeats.
|
java.util.List<org.apache.hadoop.yarn.api.records.UpdateContainerError> |
pullUpdateContainerErrors() |
|
java.util.List<org.apache.hadoop.yarn.api.records.NMToken> |
pullUpdatedNMTokens() |
|
void |
recordContainerAllocationTime(long value) |
|
void |
recordContainerRequestTime(long value) |
|
boolean |
recoverContainer(SchedulerNode node,
RMContainer rmContainer) |
|
void |
recoverResourceRequestsForContainer(ContainerRequest containerRequest) |
|
boolean |
removeRMContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Removes an RM container from the map of live containers
related to this application attempt.
|
RMContainer |
reserve(SchedulerNode node,
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.Container container) |
|
boolean |
reserveIncreasedContainer(SchedulerNode node,
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.Resource reservedResource) |
|
void |
resetMissedNonPartitionedRequestSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
protected void |
resetReReservations(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
void |
resetSchedulingOpportunities(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
Should be called when an application has successfully scheduled a
container, or when the scheduling locality threshold is relaxed.
|
void |
resetSchedulingOpportunities(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
long currentTimeMs) |
|
void |
setAMResource(java.lang.String label,
org.apache.hadoop.yarn.api.records.Resource amResource) |
|
void |
setAMResource(org.apache.hadoop.yarn.api.records.Resource amResource) |
|
void |
setAmRunning(boolean bool) |
|
void |
setAppAMNodePartitionName(java.lang.String partitionName) |
|
void |
setApplicationHeadroomForMetrics(org.apache.hadoop.yarn.api.records.Resource headroom) |
|
protected void |
setAttemptRecovering(boolean isRecovering) |
|
void |
setHeadroom(org.apache.hadoop.yarn.api.records.Resource globalLimit) |
|
void |
setOpportunisticContainerContext(org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerContext oppContext) |
|
void |
setPriority(org.apache.hadoop.yarn.api.records.Priority appPriority) |
|
void |
showRequests() |
|
void |
stop(RMAppAttemptState rmAppAttemptFinalState) |
|
void |
subtractSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey) |
|
void |
transferStateFromPreviousAttempt(SchedulerApplicationAttempt appAttempt) |
|
void |
updateAMContainerDiagnostics(SchedulerApplicationAttempt.AMState state,
java.lang.String diagnosticMessage) |
|
void |
updateBlacklist(java.util.List<java.lang.String> blacklistAdditions,
java.util.List<java.lang.String> blacklistRemovals) |
|
void |
updateNMTokens(java.util.Collection<org.apache.hadoop.yarn.api.records.Container> containers) |
|
boolean |
updateResourceRequests(java.util.List<org.apache.hadoop.yarn.api.records.ResourceRequest> requests) |
|
boolean |
updateSchedulingRequests(java.util.List<org.apache.hadoop.yarn.api.records.SchedulingRequest> requests) |
protected long lastMemoryAggregateAllocationUpdateTime
protected final AppSchedulingInfo appSchedulingInfo
protected org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> liveContainers
protected final java.util.Map<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey,java.util.Map<org.apache.hadoop.yarn.api.records.NodeId,RMContainer>> reservedContainers
protected ResourceUsage attemptResourceUsage
protected ResourceUsage attemptOpportunisticResourceUsage
protected ResourceUsage attemptResourceUsageAllocatedRemotely
protected java.util.List<RMContainer> newlyAllocatedContainers
protected java.util.List<RMContainer> tempContainerToKill
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> newlyPromotedContainers
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> newlyDemotedContainers
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> newlyDecreasedContainers
protected java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> newlyIncreasedContainers
protected java.util.Set<org.apache.hadoop.yarn.api.records.NMToken> updatedNMTokens
protected java.util.List<org.apache.hadoop.yarn.api.records.UpdateContainerError> updateContainerErrors
protected java.util.Map<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey,java.lang.Long> lastScheduledContainer
protected volatile Queue queue
protected volatile boolean isStopped
protected java.lang.String appAMNodePartitionName
protected final RMContext rmContext
protected java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLock
protected java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock
public SchedulerApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
java.lang.String user,
Queue queue,
AbstractUsersManager abstractUsersManager,
RMContext rmContext)
public void setOpportunisticContainerContext(org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerContext oppContext)
public org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerContext getOpportunisticContainerContext()
public java.util.Collection<RMContainer> getLiveContainers()
public AppSchedulingInfo getAppSchedulingInfo()
public ContainerUpdateContext getUpdateContext()
public boolean isPending()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
ApplicationAttemptId of the application master.ApplicationAttemptId of the application masterpublic org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
public java.lang.String getUser()
public java.util.Set<org.apache.hadoop.yarn.api.records.ContainerId> getPendingRelease()
public long getNewContainerId()
public java.util.Collection<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey> getSchedulerKeys()
public PendingAsk getPendingAsk(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, java.lang.String resourceName)
public int getOutstandingAsksCount(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public int getOutstandingAsksCount(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
java.lang.String resourceName)
public java.lang.String getQueueName()
public org.apache.hadoop.yarn.api.records.Resource getAMResource()
public org.apache.hadoop.yarn.api.records.Resource getAMResource(java.lang.String label)
public void setAMResource(org.apache.hadoop.yarn.api.records.Resource amResource)
public void setAMResource(java.lang.String label,
org.apache.hadoop.yarn.api.records.Resource amResource)
public boolean isAmRunning()
public void setAmRunning(boolean bool)
public boolean getUnmanagedAM()
public RMContainer getRMContainer(org.apache.hadoop.yarn.api.records.ContainerId id)
public void addRMContainer(org.apache.hadoop.yarn.api.records.ContainerId id,
RMContainer rmContainer)
public boolean removeRMContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId - The container ID of the RMContainer to removeprotected void resetReReservations(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
protected void addReReservation(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public int getReReservations(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
@Stable @Private public org.apache.hadoop.yarn.api.records.Resource getCurrentReservation()
public Queue getQueue()
public boolean updateResourceRequests(java.util.List<org.apache.hadoop.yarn.api.records.ResourceRequest> requests)
public boolean updateSchedulingRequests(java.util.List<org.apache.hadoop.yarn.api.records.SchedulingRequest> requests)
public void recoverResourceRequestsForContainer(ContainerRequest containerRequest)
public void stop(RMAppAttemptState rmAppAttemptFinalState)
public boolean isStopped()
public java.util.List<RMContainer> getReservedContainers()
public boolean reserveIncreasedContainer(SchedulerNode node, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer rmContainer, org.apache.hadoop.yarn.api.records.Resource reservedResource)
public RMContainer reserve(SchedulerNode node, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer rmContainer, org.apache.hadoop.yarn.api.records.Container container)
public void setHeadroom(org.apache.hadoop.yarn.api.records.Resource globalLimit)
public org.apache.hadoop.yarn.api.records.Resource getHeadroom()
public int getNumReservedContainers(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public void containerLaunchedOnNode(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId)
public void showRequests()
public org.apache.hadoop.yarn.api.records.Resource getCurrentConsumption()
public void updateNMTokens(java.util.Collection<org.apache.hadoop.yarn.api.records.Container> containers)
public java.util.List<org.apache.hadoop.yarn.api.records.Container> pullPreviousAttemptContainers()
AllocateResponse#containersFromPreviousAttempts.public java.util.List<org.apache.hadoop.yarn.api.records.Container> pullNewlyAllocatedContainers()
public void addToNewlyDemotedContainers(org.apache.hadoop.yarn.api.records.ContainerId containerId,
RMContainer rmContainer)
public void addToNewlyDecreasedContainers(org.apache.hadoop.yarn.api.records.ContainerId containerId,
RMContainer rmContainer)
protected void addToUpdateContainerErrors(org.apache.hadoop.yarn.api.records.UpdateContainerError error)
protected void addToNewlyAllocatedContainers(SchedulerNode node, RMContainer rmContainer)
public java.util.List<org.apache.hadoop.yarn.api.records.Container> pullNewlyPromotedContainers()
public java.util.List<org.apache.hadoop.yarn.api.records.Container> pullNewlyDemotedContainers()
public java.util.List<org.apache.hadoop.yarn.api.records.Container> pullNewlyIncreasedContainers()
public java.util.List<org.apache.hadoop.yarn.api.records.Container> pullNewlyDecreasedContainers()
public java.util.List<org.apache.hadoop.yarn.api.records.UpdateContainerError> pullUpdateContainerErrors()
public java.util.List<org.apache.hadoop.yarn.api.records.NMToken> pullUpdatedNMTokens()
public boolean isWaitingForAMContainer()
public void updateBlacklist(java.util.List<java.lang.String> blacklistAdditions,
java.util.List<java.lang.String> blacklistRemovals)
public boolean isPlaceBlacklisted(java.lang.String resourceName)
public boolean isPlaceBlackListedBasedOnLabels(java.lang.String resourceName)
public int addMissedNonPartitionedRequestSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public void resetMissedNonPartitionedRequestSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public void addSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public void subtractSchedulingOpportunity(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
public int getSchedulingOpportunities(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
schedulerKey - Scheduler Keypublic void resetSchedulingOpportunities(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey)
schedulerKey - The priority of the container scheduled.public void resetSchedulingOpportunities(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
long currentTimeMs)
public org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport getResourceUsageReport()
@VisibleForTesting public java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> getLiveContainersMap()
public java.util.Map<org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey,java.lang.Long> getLastScheduledContainer()
public void transferStateFromPreviousAttempt(SchedulerApplicationAttempt appAttempt)
public void move(Queue newQueue)
public boolean recoverContainer(SchedulerNode node, RMContainer rmContainer)
public void incNumAllocatedContainers(NodeType containerType, NodeType requestType)
public void setApplicationHeadroomForMetrics(org.apache.hadoop.yarn.api.records.Resource headroom)
public void recordContainerRequestTime(long value)
public void recordContainerAllocationTime(long value)
public java.util.Set<java.lang.String> getBlacklistedNodes()
@Private
public boolean hasPendingResourceRequest(java.lang.String nodePartition,
SchedulingMode schedulingMode)
@VisibleForTesting public ResourceUsage getAppAttemptResourceUsage()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
SchedulableEntitygetPriority in interface SchedulableEntitypublic void setPriority(org.apache.hadoop.yarn.api.records.Priority appPriority)
public java.lang.String getId()
SchedulableEntitygetId in interface SchedulableEntitypublic int compareInputOrderTo(SchedulableEntity other)
SchedulableEntitycompareInputOrderTo in interface SchedulableEntityother - SchedulableEntity.public ResourceUsage getSchedulingResourceUsage()
SchedulableEntitygetSchedulingResourceUsage in interface SchedulableEntitypublic void setAppAMNodePartitionName(java.lang.String partitionName)
public java.lang.String getAppAMNodePartitionName()
public void updateAMContainerDiagnostics(SchedulerApplicationAttempt.AMState state, java.lang.String diagnosticMessage)
protected void getPendingAppDiagnosticMessage(java.lang.StringBuilder diagnosticMessage)
protected void getActivedAppDiagnosticMessage(java.lang.StringBuilder diagnosticMessage)
public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock getWriteLock()
public boolean isRecovering()
SchedulableEntityisRecovering in interface SchedulableEntityprotected void setAttemptRecovering(boolean isRecovering)
public <N extends SchedulerNode> AppPlacementAllocator<N> getAppPlacementAllocator(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerRequestKey)
public void incUnconfirmedRes(org.apache.hadoop.yarn.api.records.Resource res)
public void decUnconfirmedRes(org.apache.hadoop.yarn.api.records.Resource res)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getApplicationSchedulingEnvs()
public java.lang.String getPartition()
SchedulableEntitygetPartition in interface SchedulableEntitypublic long getStartTime()
SchedulableEntitygetStartTime in interface SchedulableEntityCopyright © 2008–2025 Apache Software Foundation. All rights reserved.