@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ReservationRequest extends Object implements Comparable<ReservationRequest>
ReservationRequest represents the request made by an application to
 the ResourceManager to reserve Resources.
 It includes:
Resource required for each request.| Modifier and Type | Class and Description | 
|---|---|
| static class  | ReservationRequest.ReservationRequestComparator | 
| Constructor and Description | 
|---|
| ReservationRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(ReservationRequest other) | 
| boolean | equals(Object obj) | 
| abstract Resource | getCapability()Get the  Resourcecapability 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  Resourcecapability 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 | 
@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 requestcapability - 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 compareTo(ReservationRequest other)
compareTo in interface Comparable<ReservationRequest>Copyright © 2023 Apache Software Foundation. All rights reserved.