@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ResourceAllocationRequest extends Object
ResourceAllocationRequest represents an allocation
made for a reservation for the current state of the plan. This can be
changed for reasons such as re-planning, but will always be subject to the
constraints of the user contract as described by
ReservationDefinition
Resource
It includes:
Resource reserved for the allocation.Resource| Constructor and Description |
|---|
ResourceAllocationRequest() |
| Modifier and Type | Method and Description |
|---|---|
abstract Resource |
getCapability()
Get the allocated resource.
|
abstract long |
getEndTime()
Get the end time that the resource is allocated.
|
abstract long |
getStartTime()
Get the start time that the resource is allocated.
|
static ResourceAllocationRequest |
newInstance(long startTime,
long endTime,
Resource capability) |
@InterfaceAudience.Public @InterfaceStability.Stable public static ResourceAllocationRequest newInstance(long startTime, long endTime, Resource capability)
startTime - The start time that the capability is reserved for.endTime - The end time that the capability is reserved for.capability - Resource representing the capability of the
resource allocation.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getStartTime()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getEndTime()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract Resource getCapability()
Copyright © 2024 Apache Software Foundation. All rights reserved.