public class RunInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RunInfo.AgentInfo
Information passed to individual agents.
|
static class |
RunInfo.DriverConfig
The
RunInfo.DriverConfig for a specific driver. |
Modifier and Type | Field and Description |
---|---|
RunInfo.AgentInfo |
agentInfo
The current agent information.
|
boolean |
audit
Whether audit is on or not.
|
int |
benchStartTime
The benchmark start time, relative to the timer.
|
byte[] |
defBytes
fhb bytes defining a class.
|
RunInfo.DriverConfig |
driverConfig
The current driver config object.
|
static String |
DRIVERURI
Namespace URI for the Faban driver.
|
static String |
FABANURI
Namespace URI for Faban in general.
|
int |
graphInterval
The time interval for graphing.
|
Handler |
logHandler
The log handler.
|
int |
maxRunTime
The maximum run time, used only for cycle runs.
|
int |
msBetweenThreadStart
Milliseconds between thread start.
|
boolean |
parallelAgentThreadStart
Whether agents start in parallel.
|
int |
rampDown
Ramp Down, in seconds.
|
int |
rampUp
Ramp Up, in seconds.
|
String |
resultsDir
The results directory.
|
String |
runId
The run ID.
|
boolean |
runtimeStatsEnabled
Whether the runtime stats are enabled.
|
int |
runtimeStatsInterval
Interval for runtime stats.
|
int |
scale
Scale of the run.
|
boolean |
simultaneousStart
Whether all threads start simultaneously.
|
long |
start
The actual millisec start time.
|
int |
stdyState
Steady State, in seconds.
|
boolean |
variableLoad
Use varable load or not.
|
String |
variableLoadFile
Variable load input file.
|
VariableLoadHandler |
variableLoadHandler
The load adjuster for variable load.
|
Modifier and Type | Method and Description |
---|---|
static String |
getDefiningClassName()
Obtains the defining class name from the configuration file.
|
static RunInfo |
getInstance()
Obtains the singleton RunInfo instance for this JVM.
|
void |
postDeserialize()
The method postDeserialize re-establishes the non-serializable fields.
|
static RunInfo |
read(BenchmarkDefinition benchDef)
Reads all the configuration parameters from the file and combines
it with the benchmark definition.
|
public static final String FABANURI
public static final String DRIVERURI
public String resultsDir
public int scale
public boolean audit
public String runId
public int rampUp
public int rampDown
public int stdyState
public boolean variableLoad
public String variableLoadFile
public VariableLoadHandler variableLoadHandler
public boolean simultaneousStart
public boolean parallelAgentThreadStart
public int msBetweenThreadStart
public int benchStartTime
public long start
public int maxRunTime
public int graphInterval
public boolean runtimeStatsEnabled
public int runtimeStatsInterval
public RunInfo.DriverConfig driverConfig
public RunInfo.AgentInfo agentInfo
public byte[] defBytes
public transient Handler logHandler
public static String getDefiningClassName() throws Exception
Exception
- An error occurred reading the configurationpublic static RunInfo read(BenchmarkDefinition benchDef) throws Exception
benchDef
- The benchmark definitionException
- If there is an error reading the configuration,
or it mesmatches the definitionpublic static RunInfo getInstance()
public void postDeserialize() throws ClassNotFoundException
ClassNotFoundException