public class CustomResourceMetricValue extends Object
Constructor and Description |
---|
CustomResourceMetricValue() |
Modifier and Type | Method and Description |
---|---|
void |
decrease(org.apache.hadoop.yarn.api.records.Resource res) |
void |
decreaseWithMultiplier(org.apache.hadoop.yarn.api.records.Resource res,
int containers) |
Map<String,Long> |
getValues() |
void |
increase(org.apache.hadoop.yarn.api.records.Resource res) |
void |
increaseWithMultiplier(org.apache.hadoop.yarn.api.records.Resource res,
long multiplier) |
void |
set(org.apache.hadoop.yarn.api.records.Resource res) |
public void increase(org.apache.hadoop.yarn.api.records.Resource res)
public void increaseWithMultiplier(org.apache.hadoop.yarn.api.records.Resource res, long multiplier)
public void decrease(org.apache.hadoop.yarn.api.records.Resource res)
public void decreaseWithMultiplier(org.apache.hadoop.yarn.api.records.Resource res, int containers)
public void set(org.apache.hadoop.yarn.api.records.Resource res)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.