|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.gridmix.emulators.resourceusage.ResourceUsageMatcher
public class ResourceUsageMatcher
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.
| Field Summary | |
|---|---|
static String |
RESOURCE_USAGE_EMULATION_PLUGINS
Configuration key to set resource usage emulators. |
| Constructor Summary | |
|---|---|
ResourceUsageMatcher()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RESOURCE_USAGE_EMULATION_PLUGINS
| Constructor Detail |
|---|
public ResourceUsageMatcher()
| Method Detail |
|---|
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 IOException,
InterruptedException
IOException
InterruptedExceptionpublic float getProgress()
getProgress in interface Progressive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||