|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ReservationRequest
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ReservationRequest
ReservationRequest represents the request made by an application to
the ResourceManager to reserve Resources.
It includes:
Resource required for each request.
| Nested Class Summary | |
|---|---|
static class |
ReservationRequest.ReservationRequestComparator
|
| Constructor Summary | |
|---|---|
ReservationRequest()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ReservationRequest other)
|
boolean |
equals(Object obj)
|
abstract Resource |
getCapability()
Get the Resource capability of the request. |
abstract int |
getConcurrency()
Get the number of containers that need to be scheduled concurrently. |
abstract long |
getDuration()
Get the duration in milliseconds for which the resource is required. |
abstract int |
getNumContainers()
Get the number of containers required with the given specifications. |
int |
hashCode()
|
static ReservationRequest |
newInstance(Resource capability,
int numContainers)
|
static ReservationRequest |
newInstance(Resource capability,
int numContainers,
int concurrency,
long duration)
|
abstract void |
setCapability(Resource capability)
Set the Resource capability of the request |
abstract void |
setConcurrency(int numContainers)
Set the number of containers that need to be scheduled concurrently. |
abstract void |
setDuration(long duration)
Set the duration in milliseconds for which the resource is required. |
abstract void |
setNumContainers(int numContainers)
Set the number of containers required with the given specifications |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReservationRequest()
| Method Detail |
|---|
@InterfaceAudience.Public
@InterfaceStability.Unstable
public static ReservationRequest newInstance(Resource capability,
int numContainers)
@InterfaceAudience.Public
@InterfaceStability.Unstable
public static ReservationRequest newInstance(Resource capability,
int numContainers,
int concurrency,
long duration)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract Resource getCapability()
Resource capability of the request.
Resource capability of the request@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setCapability(Resource capability)
Resource capability of the request
capability - Resource capability of the request@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumContainers()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setNumContainers(int numContainers)
numContainers - number of containers required with the given
specifications@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getConcurrency()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setConcurrency(int numContainers)
numContainers - the number of containers to be concurrently scheduled@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getDuration()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setDuration(long duration)
duration - the duration in milliseconds for which the resource is
requiredpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(ReservationRequest other)
compareTo in interface Comparable<ReservationRequest>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||