org.sapia.ubik.rmi.server.perf
Class HitStatFactory
java.lang.Object
org.sapia.ubik.rmi.server.perf.HitStatFactory
public class HitStatFactory
- extends java.lang.Object
This factory is used to create instances of HitsPerHourStatistic, HitsPerMinStatistic,
and HitsPerSecStatistic.
A StatsCollector may optionally be passed to each createXXXX method of this class.
If the passed in collector is not null, the created statistic is added to it.
Each createXXXX method also takes a sample rate (in millis). If the sample rate is <= 0, the
default one is used.
- Author:
- yduchesne
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HitStatFactory
public HitStatFactory()
createHitsPerHour
public static HitsPerHourStatistic createHitsPerHour(java.lang.String name,
long sampleRate,
StatsCollector collector)
createHitsPerMin
public static HitsPerMinStatistic createHitsPerMin(java.lang.String name,
long sampleRate,
StatsCollector collector)
createHitsPerSec
public static HitsPerSecStatistic createHitsPerSec(java.lang.String name,
long sampleRate,
StatsCollector collector)
Copyright © 2010 Sapia OSS. All Rights Reserved.