public class ResourceRequestSetKey extends SchedulerRequestKey
ResourceRequest.
TODO: after YARN-7631 is fixed by adding Resource and ExecType into
SchedulerRequestKey, then we can directly use that.| Constructor and Description |
|---|
ResourceRequestSetKey(long allocationRequestId,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.ExecutionType execType)
Create the key object from member objects.
|
ResourceRequestSetKey(org.apache.hadoop.yarn.api.records.ResourceRequest rr)
Create the key object from a
ResourceRequest. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SchedulerRequestKey other) |
boolean |
equals(Object obj) |
static ResourceRequestSetKey |
extractMatchingKey(org.apache.hadoop.yarn.api.records.Container container,
Set<ResourceRequestSetKey> keys)
Extract the corresponding ResourceRequestSetKey for an allocated container
from a given set.
|
org.apache.hadoop.yarn.api.records.ExecutionType |
getExeType() |
org.apache.hadoop.yarn.api.records.Resource |
getResource() |
int |
hashCode() |
String |
toString() |
create, create, create, extractFrom, getAllocationRequestId, getContainerToUpdate, getPrioritypublic ResourceRequestSetKey(org.apache.hadoop.yarn.api.records.ResourceRequest rr)
throws org.apache.hadoop.yarn.exceptions.YarnException
ResourceRequest.rr - Resource request objectorg.apache.hadoop.yarn.exceptions.YarnException - if failspublic ResourceRequestSetKey(long allocationRequestId,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.ExecutionType execType)
allocationRequestId - allocate request id of the askpriority - the priority of the askresource - the resource size of the askexecType - the execution type of the askpublic org.apache.hadoop.yarn.api.records.Resource getResource()
public org.apache.hadoop.yarn.api.records.ExecutionType getExeType()
public boolean equals(Object obj)
equals in class SchedulerRequestKeypublic int hashCode()
hashCode in class SchedulerRequestKeypublic int compareTo(SchedulerRequestKey other)
compareTo in interface Comparable<SchedulerRequestKey>compareTo in class SchedulerRequestKeypublic static ResourceRequestSetKey extractMatchingKey(org.apache.hadoop.yarn.api.records.Container container, Set<ResourceRequestSetKey> keys)
container - the allocated containerkeys - the set of keys to look frompublic String toString()
toString in class SchedulerRequestKeyCopyright © 2008–2024 Apache Software Foundation. All rights reserved.