@Public
@Unstable
public abstract class ReservationDefinition
extends java.lang.Object
ReservationDefinition captures the set of resource and time
constraints the user cares about regarding a reservation.ResourceRequest| Constructor | Description |
|---|---|
ReservationDefinition() |
| Modifier and Type | Method | Description |
|---|---|---|
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 Priority |
getPriority() |
Get the priority for this reservation.
|
abstract java.lang.String |
getRecurrenceExpression() |
Get the recurrence of this reservation representing the time period of
the periodic job.
|
abstract java.lang.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,
java.lang.String name) |
|
static ReservationDefinition |
newInstance(long arrival,
long deadline,
ReservationRequests reservationRequests,
java.lang.String name,
java.lang.String recurrenceExpression,
Priority priority) |
|
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 |
setPriority(Priority priority) |
Set the priority for this reservation.
|
abstract void |
setRecurrenceExpression(java.lang.String recurrenceExpression) |
Set the recurrence of this reservation representing the time period of
the periodic job.
|
abstract void |
setReservationName(java.lang.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 |
@Public @Unstable public static ReservationDefinition newInstance(long arrival, long deadline, ReservationRequests reservationRequests, java.lang.String name, java.lang.String recurrenceExpression, Priority priority)
@Public @Unstable public static ReservationDefinition newInstance(long arrival, long deadline, ReservationRequests reservationRequests, java.lang.String name)
@Public @Unstable public abstract long getArrival()
@Public @Unstable public abstract void setArrival(long earliestStartTime)
earliestStartTime - the earliest valid time for this reservation@Public @Unstable public abstract long getDeadline()
@Public @Unstable public abstract void setDeadline(long latestEndTime)
latestEndTime - the deadline or the latest time by when the
resource(s) should be allocated@Public @Unstable public abstract ReservationRequests getReservationRequests()
ReservationRequests representing the resources
required by the applicationReservationRequests@Public @Unstable public abstract void setReservationRequests(ReservationRequests reservationRequests)
ReservationRequests representing the resources
required by the applicationreservationRequests - the list of ReservationRequests@Public @Unstable public abstract java.lang.String getReservationName()
@Public @Unstable public abstract void setReservationName(java.lang.String name)
name - representing the name of the corresponding reserved resource
allocation in the scheduler@Public @Unstable public abstract java.lang.String getRecurrenceExpression()
@Public @Unstable public abstract void setRecurrenceExpression(java.lang.String recurrenceExpression)
recurrenceExpression - recurrence interval of this reservation@Public @Unstable public abstract Priority getPriority()
@Public @Unstable public abstract void setPriority(Priority priority)
priority - representing the priority of the reserved resource
allocation in the schedulerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.