compbio.stat.collector
Class StatDB
java.lang.Object
compbio.stat.collector.StatDB
public class StatDB
- extends java.lang.Object
The database must be stored in the application root directory and called
"ExecutionStatistic"
- Author:
- pvtroshin
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatDB
public StatDB()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getEarliestRecord
public java.util.Date getEarliestRecord()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTotalJobsCount
public int getTotalJobsCount(java.sql.Timestamp from,
java.sql.Timestamp to)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCancelledCount
public int getCancelledCount(java.sql.Timestamp from,
java.sql.Timestamp to)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAbandonedCount
public int getAbandonedCount(java.sql.Timestamp from,
java.sql.Timestamp to)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getIncompleteCount
public int getIncompleteCount(java.sql.Timestamp from,
java.sql.Timestamp to)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
readData
public java.util.List<JobStat> readData(java.sql.Timestamp from,
java.sql.Timestamp to,
Services wservice,
java.lang.Boolean clusterOnly)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
removeRecordedJobs
public void removeRecordedJobs(java.util.Set<JobStat> fsJobs)
throws java.sql.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:
java.sql.SQLException
shutdownDBServer
public static final void shutdownDBServer()
main
public static void main(java.lang.String[] args)