compbio.stat.collector
Class StatDB

java.lang.Object
  extended by compbio.stat.collector.StatDB

public class StatDB
extends Object

The database must be stored in the application root directory and called "ExecutionStatistic"

Author:
pvtroshin

Constructor Summary
StatDB()
           
 
Method Summary
 int getAbandonedCount(Timestamp from, Timestamp to)
           
 int getCancelledCount(Timestamp from, Timestamp to)
           
 Date getEarliestRecord()
           
 int getIncompleteCount(Timestamp from, Timestamp to)
           
 int getTotalJobsCount(Timestamp from, Timestamp to)
           
static void main(String[] args)
           
 List<JobStat> readData(Timestamp from, Timestamp to, Services wservice, Boolean clusterOnly)
           
 void removeRecordedJobs(Set<JobStat> fsJobs)
          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.
static void shutdownDBServer()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatDB

public StatDB()
       throws SQLException
Throws:
SQLException
Method Detail

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)