Class AppAllocation
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.activities.AppAllocation
It contains allocation information for one application within a period of
time.
Each application allocation may have several allocation attempts.
-
Constructor Summary
ConstructorsConstructorDescriptionAppAllocation(org.apache.hadoop.yarn.api.records.Priority priority, org.apache.hadoop.yarn.api.records.NodeId nodeId, String queueName) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppAllocationActivity(String cId, Integer reqPriority, ActivityState state, String diagnose, ActivityLevel level, org.apache.hadoop.yarn.api.records.NodeId nId, Long allocationRequestId) filterAllocationAttempts(Set<Integer> requestPriorities, Set<Long> allocationRequestIds) org.apache.hadoop.yarn.api.records.PrioritylonggetTime()voidsetAllocationAttempts(List<ActivityNode> allocationAttempts) voidupdateAppContainerStateAndTime(org.apache.hadoop.yarn.api.records.ContainerId cId, ActivityState appState, long ts, String diagnostic)
-
Constructor Details
-
AppAllocation
public AppAllocation(org.apache.hadoop.yarn.api.records.Priority priority, org.apache.hadoop.yarn.api.records.NodeId nodeId, String queueName)
-
-
Method Details
-
updateAppContainerStateAndTime
public void updateAppContainerStateAndTime(org.apache.hadoop.yarn.api.records.ContainerId cId, ActivityState appState, long ts, String diagnostic) -
addAppAllocationActivity
public void addAppAllocationActivity(String cId, Integer reqPriority, ActivityState state, String diagnose, ActivityLevel level, org.apache.hadoop.yarn.api.records.NodeId nId, Long allocationRequestId) -
getNodeId
-
getQueueName
-
getActivityState
-
getPriority
public org.apache.hadoop.yarn.api.records.Priority getPriority() -
getContainerId
-
getDiagnostic
-
getTime
public long getTime() -
getAllocationAttempts
-
filterAllocationAttempts
public AppAllocation filterAllocationAttempts(Set<Integer> requestPriorities, Set<Long> allocationRequestIds) -
setAllocationAttempts
-