public class ScenarioManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SCENARIO_PROPERTY
System property that must be set to indicate what scenario to use.
|
| Modifier and Type | Method and Description |
|---|---|
CalltimeFactory |
getCalltimeFactory(String resourceTypeName) |
ContentFactory |
getContentFactory(String resourceTypeName,
String packageTypeName)
Returns the content factory defined in the scenario for discovering packages of the specified type.
|
static ScenarioManager |
getInstance()
Returns an instance of this class.
|
MeasurementFactory |
getMeasurementFactory(String resourceTypeName)
Returns the measurement factory defined in the scenario for the specified resource type.
|
ConfigurationFactory |
getPluginConfigurationFactory(String resourceTypeName)
Returns the configuration factory defined in the scenario for creating plugin configurations for the specified
resource type.
|
ResourceFactory |
getResourceFactory(String resourceTypeName)
Returns the resource factory defined in the scenario for the specified resource type.
|
TraitFactory |
getTraitFactory(String resourceTypeName) |
boolean |
isEnabled() |
public static final String SCENARIO_PROPERTY
public static ScenarioManager getInstance()
public boolean isEnabled()
public ResourceFactory getResourceFactory(String resourceTypeName)
resourceTypeName - indicates which resource factory to returnnull.public MeasurementFactory getMeasurementFactory(String resourceTypeName)
resourceTypeName - indicates the resource for which we're retrieving metricsnull.public CalltimeFactory getCalltimeFactory(String resourceTypeName)
public TraitFactory getTraitFactory(String resourceTypeName)
public ConfigurationFactory getPluginConfigurationFactory(String resourceTypeName)
resourceTypeName - indicates the resource for which we're retriving the plugin configurationnull
if the resource does not define a generator for its plugin configurationpublic ContentFactory getContentFactory(String resourceTypeName, String packageTypeName)
resourceTypeName - indicates the resource in which the type is definedpackageTypeName - indicated the type being discoverednull if the scenario does not define a generator for
a particular typeCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.