|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.common.BenchmarkDescription
public class BenchmarkDescription
This is a value class describing the benchmark.
Field Summary | |
---|---|
String |
bannerPage
Banner page for the benchmark. |
String |
benchmarkClass
The benchmark class name. |
String |
configFileName
The file used for configuring the benchmark. |
String |
configForm
The form used to configure the benchmark. |
String |
configStylesheet
The stylesheet used to format the form, if any. |
static int |
MAP_TIMEOUT
The max time to cache a map, 10 secs. |
String |
metric
The benchmark metric. |
String |
name
The full name of the benchmark. |
String |
resultFilePath
The result file path relative to the output directory. |
String |
scaleName
The name of the benchmark scale. |
String |
scaleUnit
The name of the benchmark unit. |
String |
shortName
The short name of the benchmark, and also the directory names. |
String |
version
The version of the benchmark. |
Method Summary | |
---|---|
static String |
getBannerName()
Returns the name to display on the banner. |
static String |
getBannerPage()
Returns the banner page supplied by the user. |
static String |
getBannerVersion()
Returns the version number to display on the banner. |
static Map<String,BenchmarkDescription> |
getBenchDirMap()
Obtains a map of benchmarks using the directory (or short name) as the key. |
static Map<String,BenchmarkDescription> |
getBenchDirMap(boolean deploy)
Obtains a map of benchmarks using the directory (or short name) as the key. |
static HashMap<String,BenchmarkDescription> |
getBenchNameMap()
Obtains a map of benchmarks using the full name as the key. |
static BenchmarkDescription |
getDescription(String dir)
Obtains the benchmark description for a certain deploy directory or short name. |
static BenchmarkDescription |
getDescription(String shortName,
String dir)
Obtains the benchmark description from a directory, not from cache. |
static BenchmarkDescription |
readDescription(String shortName,
String dir)
Reads the benchmark description from a directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAP_TIMEOUT
public String bannerPage
public String shortName
public String name
public String version
public String configForm
public String configStylesheet
public String configFileName
public String resultFilePath
public String benchmarkClass
public String metric
public String scaleName
public String scaleUnit
Method Detail |
---|
public static Map<String,BenchmarkDescription> getBenchDirMap()
public static Map<String,BenchmarkDescription> getBenchDirMap(boolean deploy)
deploy
- of type boolean
public static HashMap<String,BenchmarkDescription> getBenchNameMap()
public static BenchmarkDescription getDescription(String dir)
dir
- The deploy directory or short name of the benchmark
public static String getBannerPage()
public static String getBannerName()
public static String getBannerVersion()
public static BenchmarkDescription getDescription(String shortName, String dir)
shortName
- The short benchmark name, equals the deployment directorydir
- The benchmark directory
public static BenchmarkDescription readDescription(String shortName, String dir) throws Exception
shortName
- The short benchmark name, equals the deployment directorydir
- The benchmark directory
Exception
- error reading or processing the description
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |