org.rimudb.statistics
Class Statistic

java.lang.Object
  extended by org.rimudb.statistics.Statistic

public class Statistic
extends java.lang.Object


Constructor Summary
Statistic(int id, java.lang.Object data)
           
 
Method Summary
 void addEvent(StatisticEvent se)
           
 boolean exceedsThreshold(int threshold)
          Return true if one of the statistic events exceeds the limit
 java.lang.Object getData()
           
 StatisticEvent[] getEvents()
           
 int getId()
           
 long getStartTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistic

public Statistic(int id,
                 java.lang.Object data)
Method Detail

addEvent

public void addEvent(StatisticEvent se)

getData

public java.lang.Object getData()

getEvents

public StatisticEvent[] getEvents()

getStartTime

public long getStartTime()
Returns:
long

getId

public int getId()
Returns:
int

exceedsThreshold

public boolean exceedsThreshold(int threshold)
Return true if one of the statistic events exceeds the limit

Parameters:
threshold - int
Returns:
boolean


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.