Package | Description |
---|---|
org.apache.hadoop.yarn.api.protocolrecords | |
org.apache.hadoop.yarn.api.records |
Modifier and Type | Method and Description |
---|---|
abstract List<ResourceRequest> |
AllocateRequest.getAskList()
Get the list of
ResourceRequest to update the
ResourceManager about the application's resource requirements. |
Modifier and Type | Method and Description |
---|---|
static AllocateRequest |
AllocateRequest.newInstance(int responseID,
float appProgress,
List<ResourceRequest> resourceAsk,
List<ContainerId> containersToBeReleased,
ResourceBlacklistRequest resourceBlacklistRequest) |
static AllocateRequest |
AllocateRequest.newInstance(int responseID,
float appProgress,
List<ResourceRequest> resourceAsk,
List<ContainerId> containersToBeReleased,
ResourceBlacklistRequest resourceBlacklistRequest,
List<ContainerResourceIncreaseRequest> increaseRequests) |
abstract void |
AllocateRequest.setAskList(List<ResourceRequest> resourceRequests)
Set list of
ResourceRequest to update the
ResourceManager about the application's resource requirements. |
Modifier and Type | Method and Description |
---|---|
abstract ResourceRequest |
ApplicationSubmissionContext.getAMContainerResourceRequest()
Get ResourceRequest of AM container, if this is not null, scheduler will
use this to acquire resource for AM container.
|
abstract ResourceRequest |
PreemptionResourceRequest.getResourceRequest() |
static ResourceRequest |
ResourceRequest.newInstance(Priority priority,
String hostName,
Resource capability,
int numContainers) |
static ResourceRequest |
ResourceRequest.newInstance(Priority priority,
String hostName,
Resource capability,
int numContainers,
boolean relaxLocality) |
static ResourceRequest |
ResourceRequest.newInstance(Priority priority,
String hostName,
Resource capability,
int numContainers,
boolean relaxLocality,
String labelExpression) |
Modifier and Type | Method and Description |
---|---|
int |
ResourceRequest.ResourceRequestComparator.compare(ResourceRequest r1,
ResourceRequest r2) |
int |
ResourceRequest.compareTo(ResourceRequest other) |
static ApplicationSubmissionContext |
ApplicationSubmissionContext.newInstance(ApplicationId applicationId,
String applicationName,
String queue,
ContainerLaunchContext amContainer,
boolean isUnmanagedAM,
boolean cancelTokensWhenComplete,
int maxAppAttempts,
String applicationType,
boolean keepContainers,
String appLabelExpression,
ResourceRequest resourceRequest) |
static PreemptionResourceRequest |
PreemptionResourceRequest.newInstance(ResourceRequest req) |
abstract void |
ApplicationSubmissionContext.setAMContainerResourceRequest(ResourceRequest request)
Set ResourceRequest of AM container
|
abstract void |
PreemptionResourceRequest.setResourceRequest(ResourceRequest req) |
Copyright © 2016 Apache Software Foundation. All Rights Reserved.