org.apache.hadoop.yarn.server.resourcemanager.reservation
Class ReservationInputValidator

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.reservation.ReservationInputValidator

public class ReservationInputValidator
extends Object


Constructor Summary
ReservationInputValidator(org.apache.hadoop.yarn.util.Clock clock)
          Utility class to validate reservation requests.
 
Method Summary
 Plan validateReservationDeleteRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest request)
          Quick validation on the input to check some obvious fail conditions (fail fast) the input and returns the appropriate Plan associated with the specified Queue or throws an exception message illustrating the details of any validation check failures
 Plan validateReservationSubmissionRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request, org.apache.hadoop.yarn.api.records.ReservationId reservationId)
          Quick validation on the input to check some obvious fail conditions (fail fast) the input and returns the appropriate Plan associated with the specified Queue or throws an exception message illustrating the details of any validation check failures
 Plan validateReservationUpdateRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest request)
          Quick validation on the input to check some obvious fail conditions (fail fast) the input and returns the appropriate Plan associated with the specified Queue or throws an exception message illustrating the details of any validation check failures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservationInputValidator

public ReservationInputValidator(org.apache.hadoop.yarn.util.Clock clock)
Utility class to validate reservation requests.

Method Detail

validateReservationSubmissionRequest

public Plan validateReservationSubmissionRequest(ReservationSystem reservationSystem,
                                                 org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request,
                                                 org.apache.hadoop.yarn.api.records.ReservationId reservationId)
                                          throws org.apache.hadoop.yarn.exceptions.YarnException
Quick validation on the input to check some obvious fail conditions (fail fast) the input and returns the appropriate Plan associated with the specified Queue or throws an exception message illustrating the details of any validation check failures

Parameters:
reservationSystem - the ReservationSystem to validate against
request - the ReservationSubmissionRequest defining the resources required over time for the request
reservationId - the ReservationId associated with the current request
Returns:
the Plan to submit the request to
Throws:
org.apache.hadoop.yarn.exceptions.YarnException

validateReservationUpdateRequest

public Plan validateReservationUpdateRequest(ReservationSystem reservationSystem,
                                             org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest request)
                                      throws org.apache.hadoop.yarn.exceptions.YarnException
Quick validation on the input to check some obvious fail conditions (fail fast) the input and returns the appropriate Plan associated with the specified Queue or throws an exception message illustrating the details of any validation check failures

Parameters:
reservationSystem - the ReservationSystem to validate against
request - the ReservationUpdateRequest defining the resources required over time for the request
Returns:
the Plan to submit the request to
Throws:
org.apache.hadoop.yarn.exceptions.YarnException

validateReservationDeleteRequest

public Plan validateReservationDeleteRequest(ReservationSystem reservationSystem,
                                             org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest request)
                                      throws org.apache.hadoop.yarn.exceptions.YarnException
Quick validation on the input to check some obvious fail conditions (fail fast) the input and returns the appropriate Plan associated with the specified Queue or throws an exception message illustrating the details of any validation check failures

Parameters:
reservationSystem - the ReservationSystem to validate against
request - the ReservationDeleteRequest defining the resources required over time for the request
Returns:
the Plan to submit the request to
Throws:
org.apache.hadoop.yarn.exceptions.YarnException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.