public class AppAllocation extends Object
Constructor and Description |
---|
AppAllocation(org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
String queueName) |
Modifier and Type | Method and Description |
---|---|
void |
addAppAllocationActivity(String cId,
Integer reqPriority,
ActivityState state,
String diagnose,
ActivityLevel level,
org.apache.hadoop.yarn.api.records.NodeId nId,
Long allocationRequestId) |
AppAllocation |
filterAllocationAttempts(Set<Integer> requestPriorities,
Set<Long> allocationRequestIds) |
ActivityState |
getActivityState() |
List<ActivityNode> |
getAllocationAttempts() |
String |
getContainerId() |
String |
getDiagnostic() |
String |
getNodeId() |
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
String |
getQueueName() |
long |
getTime() |
void |
setAllocationAttempts(List<ActivityNode> allocationAttempts) |
void |
updateAppContainerStateAndTime(org.apache.hadoop.yarn.api.records.ContainerId cId,
ActivityState appState,
long ts,
String diagnostic) |
public AppAllocation(org.apache.hadoop.yarn.api.records.Priority priority, org.apache.hadoop.yarn.api.records.NodeId nodeId, String queueName)
public void updateAppContainerStateAndTime(org.apache.hadoop.yarn.api.records.ContainerId cId, ActivityState appState, long ts, String diagnostic)
public void addAppAllocationActivity(String cId, Integer reqPriority, ActivityState state, String diagnose, ActivityLevel level, org.apache.hadoop.yarn.api.records.NodeId nId, Long allocationRequestId)
public String getNodeId()
public String getQueueName()
public ActivityState getActivityState()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
public String getContainerId()
public String getDiagnostic()
public long getTime()
public List<ActivityNode> getAllocationAttempts()
public AppAllocation filterAllocationAttempts(Set<Integer> requestPriorities, Set<Long> allocationRequestIds)
public void setAllocationAttempts(List<ActivityNode> allocationAttempts)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.