uk.ac.ebi.intact.util
Class StatisticsDataSet

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.StatisticsDataSet

public final class StatisticsDataSet
extends java.lang.Object


Field Summary
static long DATA_NOT_LOADED
           
static java.text.SimpleDateFormat dateFormater
           
static long MAXIMUM_DATA_AVAILABILITY
           
static long NONE
           
 
Method Summary
static StatisticsDataSet getInstance()
           
static StatisticsDataSet getInstance(java.lang.String loggerName)
           
 StatisticsBean getStatisticBean()
          Return the data collected, this is the only public method.
 StatisticsBean getStatisticBean(java.lang.String startDate, java.lang.String stopDate)
          Return the data collected, this is the only public method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_NOT_LOADED

public static final long DATA_NOT_LOADED
See Also:
Constant Field Values

NONE

public static final long NONE
See Also:
Constant Field Values

MAXIMUM_DATA_AVAILABILITY

public static final long MAXIMUM_DATA_AVAILABILITY
See Also:
Constant Field Values

dateFormater

public static final java.text.SimpleDateFormat dateFormater
Method Detail

getInstance

public static StatisticsDataSet getInstance(java.lang.String loggerName)

getInstance

public static StatisticsDataSet getInstance()

getStatisticBean

public final StatisticsBean getStatisticBean()
                                      throws NoDataException
Return the data collected, this is the only public method.

Returns:
a bean containing the statistics and the database source details.
NoDataException

getStatisticBean

public final StatisticsBean getStatisticBean(java.lang.String startDate,
                                             java.lang.String stopDate)
                                      throws NoDataException
Return the data collected, this is the only public method.

Parameters:
startDate - the date from which we want to display the statistics. null indicated that there is no start date. That date has to respect the format defined by the SimpleDateFormater (DD-MMM-YYYY)
stopDate - the date until which we want to display the statistics. null indicated that there is no end date. That date has to respect the format defined by the SimpleDateFormater (DD-MMM-YYYY)
Returns:
a bean containing the statistics and the database source details.
NoDataException


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk