public class Run extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Run(String runSeq,
BenchmarkDescription benchDesc)
Construcs a run object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public Run(String runSeq, BenchmarkDescription benchDesc)
runSeq
- The sequence numberbenchDesc
- The benchmark descriptionpublic 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 statusIOException
- If the update fails