Package | Description |
---|---|
org.apache.hadoop.yarn.server.resourcemanager.resource | |
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies |
Modifier and Type | Method and Description |
---|---|
static ResourceType |
ResourceType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
ResourceType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
float |
ResourceWeights.getWeight(ResourceType resourceType) |
void |
ResourceWeights.setWeight(ResourceType resourceType,
float weight) |
Modifier and Type | Method and Description |
---|---|
static void |
ComputeFairShares.computeShares(Collection<? extends Schedulable> schedulables,
Resource totalResources,
ResourceType type)
Given a set of Schedulables and a number of slots, compute their weighted
fair shares.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.