public class RunDaemon extends Object implements Runnable
Constructor and Description |
---|
RunDaemon(RunQLock runqLock)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
exit()
Exits the RunDaemon.
|
Run |
fetchNextRun(String name)
Fetches the next run from the run queue and places it into the output to
be executed.
|
String |
getCurrentRunBenchmark()
Obtains the short name of the current benchmark run.
|
String |
getCurrentRunId()
Obtains the run id of the current run.
|
String |
getRunDaemonThreadStatus()
Obtains RunDaemon thread status.
|
String |
killCurrentRun(String runId,
String user)
To abort the currently executing benchmark run.
|
NameValuePair<Long> |
nextRunAge(long minAge)
Obtains the name and age of the next run, in milliseconds
since submitted, if the age is more than minAge.
|
boolean |
resumeRunDaemonThread()
Called by RunQ's resumeRunDaemon method.
|
void |
run()
The run method for the RunDaemonThread.
|
boolean |
suspendRunDaemonThread()
Called by RunQ's stopRunDaemon method.
|
public RunDaemon(RunQLock runqLock)
runqLock
- the monitor object used to syncronize on the runqpublic NameValuePair<Long> nextRunAge(long minAge)
minAge
- The minimum run age to return.public Run fetchNextRun(String name) throws RunEntryException, IOException, ClassNotFoundException
name
- The name of the run to fetchRunEntryException
- The next run entry is incompleteIOException
- There is an error reading the entryClassNotFoundException
- Could not find the benchmark class
for the run.public void run()
public String getCurrentRunId()
public String getCurrentRunBenchmark()
public String killCurrentRun(String runId, String user)
runId
- The name of the runuser
- The user killing the runpublic void exit()
public String getRunDaemonThreadStatus()
public boolean suspendRunDaemonThread()
public boolean resumeRunDaemonThread()