java.lang.Comparable<SchedulerRequestKey>ResourceRequestSetKeypublic class SchedulerRequestKey extends java.lang.Object implements java.lang.Comparable<SchedulerRequestKey>
Priority.| Constructor | Description |
|---|---|
SchedulerRequestKey(org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
org.apache.hadoop.yarn.api.records.ContainerId containerToUpdate) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(SchedulerRequestKey o) |
|
static SchedulerRequestKey |
create(org.apache.hadoop.yarn.api.records.ResourceRequest req) |
Factory method to generate a SchedulerRequestKey from a ResourceRequest.
|
static SchedulerRequestKey |
create(org.apache.hadoop.yarn.api.records.SchedulingRequest req) |
Factory method to generate a SchedulerRequestKey from a SchedulingRequest.
|
static SchedulerRequestKey |
create(org.apache.hadoop.yarn.api.records.UpdateContainerRequest req,
SchedulerRequestKey schedulerRequestKey) |
|
boolean |
equals(java.lang.Object o) |
|
static SchedulerRequestKey |
extractFrom(org.apache.hadoop.yarn.api.records.Container container) |
Convenience method to extract the SchedulerRequestKey used to schedule the
Container.
|
long |
getAllocationRequestId() |
Get the Id of the associated
ResourceRequest. |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerToUpdate() |
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
Get the
Priority of the request. |
int |
hashCode() |
|
java.lang.String |
toString() |
public SchedulerRequestKey(org.apache.hadoop.yarn.api.records.Priority priority,
long allocationRequestId,
org.apache.hadoop.yarn.api.records.ContainerId containerToUpdate)
public static SchedulerRequestKey create(org.apache.hadoop.yarn.api.records.ResourceRequest req)
req - ResourceRequestpublic static SchedulerRequestKey create(org.apache.hadoop.yarn.api.records.SchedulingRequest req)
req - SchedulingRequestpublic static SchedulerRequestKey create(org.apache.hadoop.yarn.api.records.UpdateContainerRequest req, SchedulerRequestKey schedulerRequestKey)
public static SchedulerRequestKey extractFrom(org.apache.hadoop.yarn.api.records.Container container)
container - Containerpublic org.apache.hadoop.yarn.api.records.Priority getPriority()
Priority of the request.Priority of the requestpublic long getAllocationRequestId()
ResourceRequest.ResourceRequestpublic org.apache.hadoop.yarn.api.records.ContainerId getContainerToUpdate()
public int compareTo(SchedulerRequestKey o)
compareTo in interface java.lang.Comparable<SchedulerRequestKey>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.