@Public
@Unstable
public abstract class SchedulingRequest
extends java.lang.Object
SchedulingRequest represents a request made by an application to the
ResourceManager to obtain an allocation. It is similar to the
ResourceRequest. However, it is more complete than the latter, as it
allows applications to specify allocation tags (e.g., to express that an
allocation belongs to Spark or is an HBase-master), as well
as involved PlacementConstraints (e.g., anti-affinity between Spark
and HBase allocations).
The size specification of the allocation is in ResourceSizing.| Modifier and Type | Class | Description |
|---|---|---|
static class |
SchedulingRequest.SchedulingRequestBuilder |
Class to construct instances of
SchedulingRequest with specific
options. |
| Constructor | Description |
|---|---|
SchedulingRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract long |
getAllocationRequestId() |
|
abstract java.util.Set<java.lang.String> |
getAllocationTags() |
|
abstract ExecutionTypeRequest |
getExecutionType() |
|
abstract PlacementConstraint |
getPlacementConstraint() |
|
abstract Priority |
getPriority() |
|
abstract ResourceSizing |
getResourceSizing() |
|
static SchedulingRequest.SchedulingRequestBuilder |
newBuilder() |
|
static SchedulingRequest |
newInstance(long allocationRequestId,
Priority priority,
ExecutionTypeRequest executionType,
java.util.Set<java.lang.String> allocationTags,
ResourceSizing resourceSizing,
PlacementConstraint placementConstraintExpression) |
|
abstract void |
setAllocationRequestId(long allocationRequestId) |
|
abstract void |
setAllocationTags(java.util.Set<java.lang.String> allocationTags) |
|
abstract void |
setExecutionType(ExecutionTypeRequest executionType) |
|
abstract void |
setPlacementConstraint(PlacementConstraint placementConstraint) |
|
abstract void |
setPriority(Priority priority) |
|
abstract void |
setResourceSizing(ResourceSizing resourceSizing) |
@Public @Unstable public static SchedulingRequest newInstance(long allocationRequestId, Priority priority, ExecutionTypeRequest executionType, java.util.Set<java.lang.String> allocationTags, ResourceSizing resourceSizing, PlacementConstraint placementConstraintExpression)
@Public @Unstable public static SchedulingRequest.SchedulingRequestBuilder newBuilder()
public abstract long getAllocationRequestId()
public abstract void setAllocationRequestId(long allocationRequestId)
public abstract Priority getPriority()
public abstract void setPriority(Priority priority)
public abstract ExecutionTypeRequest getExecutionType()
public abstract void setExecutionType(ExecutionTypeRequest executionType)
public abstract java.util.Set<java.lang.String> getAllocationTags()
public abstract void setAllocationTags(java.util.Set<java.lang.String> allocationTags)
public abstract ResourceSizing getResourceSizing()
public abstract void setResourceSizing(ResourceSizing resourceSizing)
public abstract PlacementConstraint getPlacementConstraint()
public abstract void setPlacementConstraint(PlacementConstraint placementConstraint)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.