|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.common.Run
public class Run
This is the benchmark run object. The run can either be in the RunQ (before it executes) or in the output directory when and after it finishes executing. This class keeps track of the various files in a run. An object of this class is created by the Engine and passed as a a parameter to the various services and benchmark code.
Field Summary | |
---|---|
static int |
COMPLETED
Run status COMPLETED. |
static int |
FAILED
Run status FAILED. |
static int |
KILLED
Run status KILLED. |
static int |
RECEIVED
Run status RECEIVED. |
static int |
STARTED
Run status STARTED. |
static String[] |
STATUS_MESSAGE
The status messages for each status. |
Constructor Summary | |
---|---|
Run(String runSeq,
BenchmarkDescription benchDesc)
Construcs a run object. |
Method Summary | |
---|---|
BenchmarkDescription |
getBenchDesc()
Obtains the benchmark description. |
String |
getBenchmarkName()
Obtains the short name of the benchmark run. |
String |
getLog()
Get pathname of log for this run. |
String |
getOutDir()
Get output directory pathname. |
String |
getParamFile()
Get full pathname of ParamRepository for this run This method checks in the run is in the RunQ or output directories, and returns the appropriate path. |
String |
getRunId()
Get the id of this run. |
String |
getRunSeq()
Get the sequence of the run. |
void |
updateStatus(int status)
Updates the run status in the result info file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STARTED
public static final int RECEIVED
public static final int COMPLETED
public static final int FAILED
public static final int KILLED
public static final String[] STATUS_MESSAGE
Constructor Detail |
---|
public Run(String runSeq, BenchmarkDescription benchDesc)
runSeq
- The sequence numberbenchDesc
- The benchmark descriptionMethod Detail |
---|
public String getRunSeq()
public String getRunId()
public String getBenchmarkName()
public BenchmarkDescription getBenchDesc()
public String getLog()
public String getParamFile()
public String getOutDir()
public void updateStatus(int status) throws IOException
status
- The new run status
IOException
- If the update fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |