|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.yarn.api.records.ReservationDefinition
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ReservationDefinition
ReservationDefinition
captures the set of resource and time
constraints the user cares about regarding a reservation.
ResourceRequest
Constructor Summary | |
---|---|
ReservationDefinition()
|
Method Summary | |
---|---|
abstract long |
getArrival()
Get the arrival time or the earliest time from which the resource(s) can be allocated. |
abstract long |
getDeadline()
Get the deadline or the latest time by when the resource(s) must be allocated. |
abstract String |
getReservationName()
Get the name for this reservation. |
abstract ReservationRequests |
getReservationRequests()
Get the list of ReservationRequests representing the resources
required by the application |
static ReservationDefinition |
newInstance(long arrival,
long deadline,
ReservationRequests reservationRequests,
String name)
|
abstract void |
setArrival(long earliestStartTime)
Set the arrival time or the earliest time from which the resource(s) can be allocated. |
abstract void |
setDeadline(long latestEndTime)
Set the deadline or the latest time by when the resource(s) must be allocated. |
abstract void |
setReservationName(String name)
Set the name for this reservation. |
abstract void |
setReservationRequests(ReservationRequests reservationRequests)
Set the list of ReservationRequests representing the resources
required by the application |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReservationDefinition()
Method Detail |
---|
@InterfaceAudience.Public @InterfaceStability.Unstable public static ReservationDefinition newInstance(long arrival, long deadline, ReservationRequests reservationRequests, String name)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getArrival()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setArrival(long earliestStartTime)
earliestStartTime
- the earliest valid time for this reservation@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getDeadline()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setDeadline(long latestEndTime)
latestEndTime
- the deadline or the latest time by when the
resource(s) should be allocated@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ReservationRequests getReservationRequests()
ReservationRequests
representing the resources
required by the application
ReservationRequests
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setReservationRequests(ReservationRequests reservationRequests)
ReservationRequests
representing the resources
required by the application
reservationRequests
- the list of ReservationRequests
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract String getReservationName()
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract void setReservationName(String name)
name
- representing the name of the corresponding reserved resource
allocation in the scheduler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |