Progressivepublic class ResourceUsageMatcher extends java.lang.Object implements Progressive
This is the driver class for managing all the resource usage emulators.
ResourceUsageMatcher expects a comma separated list of
ResourceUsageEmulatorPlugin implementations specified using
RESOURCE_USAGE_EMULATION_PLUGINS as the configuration parameter.
Note that the order in which the emulators are invoked is same as the order in which they are configured.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
RESOURCE_USAGE_EMULATION_PLUGINS |
Configuration key to set resource usage emulators.
|
| Constructor | Description |
|---|---|
ResourceUsageMatcher() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
configure(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.util.ResourceCalculatorPlugin monitor,
org.apache.hadoop.tools.rumen.ResourceUsageMetrics metrics,
Progressive progress) |
Configure the
ResourceUsageMatcher to load the configured plugins
and initialize them. |
float |
getProgress() |
Returns the average progress.
|
void |
matchResourceUsage() |
public static final java.lang.String RESOURCE_USAGE_EMULATION_PLUGINS
public void configure(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.util.ResourceCalculatorPlugin monitor,
org.apache.hadoop.tools.rumen.ResourceUsageMetrics metrics,
Progressive progress)
ResourceUsageMatcher to load the configured plugins
and initialize them.public void matchResourceUsage()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic float getProgress()
getProgress in interface ProgressiveCopyright © 2008–2025 Apache Software Foundation. All rights reserved.