Class ReservationInputValidator

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

public class ReservationInputValidator extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReservationInputValidator(org.apache.hadoop.yarn.util.Clock clock)
    Utility class to validate reservation requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    validateReservationListRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest 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.
    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
    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 Details

    • ReservationInputValidator

      public ReservationInputValidator(org.apache.hadoop.yarn.util.Clock clock)
      Utility class to validate reservation requests.
      Parameters:
      clock - the Clock to use
  • Method Details

    • 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 - if validation fails
    • 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 - if validation fails
    • validateReservationListRequest

      public Plan validateReservationListRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest 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 ReservationListRequest defining search parameters for reservations in the ReservationSystem that is being validated against.
      Returns:
      the Plan to list reservations of.
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - if validation fails
    • 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 - if validation fails