org.apache.hadoop.yarn.api.records
Class ReservationRequests

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ReservationRequests

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class ReservationRequests
extends Object

ReservationRequests captures the set of resource and constraints the user cares about regarding a reservation.

See Also:
ReservationRequest

Constructor Summary
ReservationRequests()
           
 
Method Summary
abstract  ReservationRequestInterpreter getInterpreter()
          Get the ReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.
abstract  List<ReservationRequest> getReservationResources()
          Get the list of ReservationRequest representing the resources required by the application
static ReservationRequests newInstance(List<ReservationRequest> reservationResources, ReservationRequestInterpreter type)
           
abstract  void setInterpreter(ReservationRequestInterpreter interpreter)
          Set the ReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.
abstract  void setReservationResources(List<ReservationRequest> reservationResources)
          Set the list of ReservationRequest 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

ReservationRequests

public ReservationRequests()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Unstable
public static ReservationRequests newInstance(List<ReservationRequest> reservationResources,
                                                                                                   ReservationRequestInterpreter type)

getReservationResources

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract List<ReservationRequest> getReservationResources()
Get the list of ReservationRequest representing the resources required by the application

Returns:
the list of ReservationRequest

setReservationResources

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setReservationResources(List<ReservationRequest> reservationResources)
Set the list of ReservationRequest representing the resources required by the application

Parameters:
reservationResources - the list of ReservationRequest

getInterpreter

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract ReservationRequestInterpreter getInterpreter()
Get the ReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.

Returns:
the list of ReservationRequestInterpreter

setInterpreter

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setInterpreter(ReservationRequestInterpreter interpreter)
Set the ReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.

Parameters:
interpreter - the ReservationRequestInterpreter for this reservation


Copyright © 2014 Apache Software Foundation. All Rights Reserved.