001: /*
002: * This software is released under a licence similar to the Apache Software Licence.
003: * See org.logicalcobwebs.proxool.package.html for details.
004: * The latest version is available at http://proxool.sourceforge.net
005: */
006: package org.logicalcobwebs.proxool.admin;
007:
008: import java.util.Date;
009:
010: /**
011: * Provides statistical performance information for a period ot
012: * time.
013: *
014: * @version $Revision: 1.2 $, $Date: 2003/03/03 11:11:59 $
015: * @author bill
016: * @author $Author: billhorsman $ (current maintainer)
017: * @since Proxool 0.7
018: */
019: public interface StatisticsIF {
020:
021: /**
022: * The length of time this sample represents,
023: * @return period (milliseconds)
024: */
025: long getPeriod();
026:
027: /**
028: * The average time that each connection spent active.
029: * @return averageActiveTime (milliseconds)
030: */
031: double getAverageActiveTime();
032:
033: /**
034: * The average number of active connections,
035: * @return averageActiveCount
036: */
037: double getAverageActiveCount();
038:
039: /**
040: * The number of connections served during this sample.
041: * @return servedCount
042: */
043: long getServedCount();
044:
045: /**
046: * The number of connections refused during this sample.
047: * @return refusedCount
048: */
049: long getRefusedCount();
050:
051: /**
052: * When this sample started.
053: * @return startDate
054: * @see #getStopDate
055: * @see #getPeriod
056: */
057: Date getStartDate();
058:
059: /**
060: * When this sample stopped
061: * @return stopDate
062: * @see #getStartDate
063: * @see #getPeriod
064: */
065: Date getStopDate();
066:
067: /**
068: * The rate at which we have served connections
069: * @return servedPerSecond
070: */
071: double getServedPerSecond();
072:
073: /**
074: * The rate at which we have refused connections
075: * @return refusedPerSecond
076: */
077: double getRefusedPerSecond();
078:
079: }
080:
081: /*
082: Revision history:
083: $Log: StatisticsIF.java,v $
084: Revision 1.2 2003/03/03 11:11:59 billhorsman
085: fixed licence
086:
087: Revision 1.1 2003/02/19 23:36:51 billhorsman
088: renamed monitor package to admin
089:
090: Revision 1.3 2003/01/31 16:53:23 billhorsman
091: checkstyle
092:
093: Revision 1.2 2003/01/31 16:38:54 billhorsman
094: doc (and removing public modifier for classes where possible)
095:
096: Revision 1.1 2003/01/31 11:35:57 billhorsman
097: improvements to servlet (including connection details)
098:
099: Revision 1.1 2003/01/30 17:20:12 billhorsman
100: fixes, improvements and doc
101:
102: */
|