compbio.stat.collector
Class StatDB
java.lang.Object
compbio.stat.collector.StatDB
public class StatDB
- extends Object
The database must be stored in the application root directory and called
"ExecutionStatistic"
- Author:
- pvtroshin
StatDB
public StatDB()
throws SQLException
- Throws:
SQLException
getEarliestRecord
public Date getEarliestRecord()
throws SQLException
- Throws:
SQLException
getTotalJobsCount
public int getTotalJobsCount(Timestamp from,
Timestamp to)
throws SQLException
- Throws:
SQLException
getCancelledCount
public int getCancelledCount(Timestamp from,
Timestamp to)
throws SQLException
- Throws:
SQLException
getAbandonedCount
public int getAbandonedCount(Timestamp from,
Timestamp to)
throws SQLException
- Throws:
SQLException
getIncompleteCount
public int getIncompleteCount(Timestamp from,
Timestamp to)
throws SQLException
- Throws:
SQLException
readData
public List<JobStat> readData(Timestamp from,
Timestamp to,
Services wservice,
Boolean clusterOnly)
throws SQLException
- Throws:
SQLException
removeRecordedJobs
public void removeRecordedJobs(Set<JobStat> fsJobs)
throws SQLException
- Removes the job if
1) It has already been recorded
2) It has not completed and did not timeout - this is to prevent
recording the information on the incomplete jobs.
- Parameters:
fsJobs
-
- Throws:
SQLException
shutdownDBServer
public static final void shutdownDBServer()
main
public static void main(String[] args)