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) |
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, getPriority
public 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 SchedulerRequestKey
public int hashCode()
hashCode
in class SchedulerRequestKey
public int compareTo(SchedulerRequestKey other)
compareTo
in interface Comparable<SchedulerRequestKey>
compareTo
in class SchedulerRequestKey
public String toString()
toString
in class SchedulerRequestKey
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.