public class ReservationInputValidator extends Object
Constructor and Description |
---|
ReservationInputValidator(org.apache.hadoop.yarn.util.Clock clock)
Utility class to validate reservation requests.
|
Modifier and Type | Method and Description |
---|---|
Plan |
validateReservationDeleteRequest(ReservationSystem reservationSystem,
org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest request)
|
Plan |
validateReservationListRequest(ReservationSystem reservationSystem,
org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest request)
|
Plan |
validateReservationSubmissionRequest(ReservationSystem reservationSystem,
org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request,
org.apache.hadoop.yarn.api.records.ReservationId reservationId)
|
Plan |
validateReservationUpdateRequest(ReservationSystem reservationSystem,
org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest request)
|
public ReservationInputValidator(org.apache.hadoop.yarn.util.Clock clock)
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
Plan
associated with
the specified Queue
or throws an exception message illustrating the
details of any validation check failuresreservationSystem
- the ReservationSystem
to validate againstrequest
- the ReservationSubmissionRequest
defining the
resources required over time for the requestreservationId
- the ReservationId
associated with the current
requestPlan
to submit the request toorg.apache.hadoop.yarn.exceptions.YarnException
public Plan validateReservationUpdateRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException
Plan
associated with
the specified Queue
or throws an exception message illustrating the
details of any validation check failuresreservationSystem
- the ReservationSystem
to validate againstrequest
- the ReservationUpdateRequest
defining the resources
required over time for the requestPlan
to submit the request toorg.apache.hadoop.yarn.exceptions.YarnException
public Plan validateReservationListRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException
Plan
associated with
the specified Queue
or throws an exception message illustrating the
details of any validation check failures.reservationSystem
- the ReservationSystem
to validate againstrequest
- the ReservationListRequest
defining search
parameters for reservations in the ReservationSystem
that is being validated against.Plan
to list reservations of.org.apache.hadoop.yarn.exceptions.YarnException
public Plan validateReservationDeleteRequest(ReservationSystem reservationSystem, org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException
Plan
associated with
the specified Queue
or throws an exception message illustrating the
details of any validation check failuresreservationSystem
- the ReservationSystem
to validate againstrequest
- the ReservationDeleteRequest
defining the resources
required over time for the requestPlan
to submit the request toorg.apache.hadoop.yarn.exceptions.YarnException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.