public class ExecutionStatCollector
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
(package private) static java.text.SimpleDateFormat |
DF |
(package private) static java.io.FileFilter |
directories |
private static org.apache.log4j.Logger |
log |
private java.util.List<JobStat> |
stats |
private int |
timeOutInHours
Consider the job that has been working for longer than timeOutInHours
completed, whatever the outcome
|
(package private) static int |
UNDEFINED |
private java.io.File |
workingDirectory |
Constructor and Description |
---|
ExecutionStatCollector(java.lang.String workingDirectory,
int timeOutInHours)
List subdirectories in the job directory
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
collectStatistics() |
(package private) StatProcessor |
getStats() |
(package private) boolean |
hasCompleted(JobDirectory jd) |
(package private) boolean |
hasTimedOut(JobDirectory jd) |
static void |
main(java.lang.String[] args)
Not in use
|
void |
run() |
(package private) void |
writeStatToDB() |
static final int UNDEFINED
static java.text.SimpleDateFormat DF
private static final org.apache.log4j.Logger log
private final java.io.File workingDirectory
private final java.util.List<JobStat> stats
private final int timeOutInHours
static java.io.FileFilter directories
public ExecutionStatCollector(java.lang.String workingDirectory, int timeOutInHours)
workingDirectory
- timeOutInHours
- boolean hasCompleted(JobDirectory jd)
boolean hasTimedOut(JobDirectory jd)
StatProcessor getStats()
void writeStatToDB() throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
void collectStatistics()
public void run()
run
in interface java.lang.Runnable