com.caucho.env.meter
Class MeterService

java.lang.Object
  extended by com.caucho.env.service.AbstractResinSubSystem
      extended by com.caucho.env.meter.MeterService
All Implemented Interfaces:
ResinSubSystem
Direct Known Subclasses:
StatProbeManager

public class MeterService
extends AbstractResinSubSystem


Field Summary
 
Fields inherited from interface com.caucho.env.service.ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER
 
Constructor Summary
protected MeterService()
           
 
Method Summary
static MeterService create()
           
static ActiveMeter createActiveMeter(java.lang.String name)
          An ActiveMeter counts the number of an active resource, e.g.
static ActiveMeter createActiveMeter(java.lang.String name, java.lang.String subName)
           
static ActiveTimeMeter createActiveTimeMeter(java.lang.String name)
           
static ActiveTimeMeter createActiveTimeMeter(java.lang.String name, java.lang.String type, java.lang.String subName)
           
static AverageMeter createAverageMeter(java.lang.String name, java.lang.String type)
           
static AverageTimeMeter createAverageTimeMeter(java.lang.String name)
           
static CountMeter createCountMeter(java.lang.String name)
           
static AbstractMeter createJmx(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
           
static AbstractMeter createJmxDelta(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
           
 AbstractMeter createMeter(AbstractMeter newMeter)
           
static SampleCountMeter createSampleCountMeter(java.lang.String name)
           
static SemaphoreMeter createSemaphoreMeter(java.lang.String name)
          Creates a semaphore meter and generate Count, Min, and Max meter.
static SemaphoreMeter createSimpleSemaphoreMeter(java.lang.String name)
           
static TimeMeter createTimeMeter(java.lang.String name)
           
static TimeRangeMeter createTimeRangeMeter(java.lang.String baseName)
           
static MeterService getCurrent()
           
static AbstractMeter getMeter(java.lang.String name)
           
protected  void registerMeter(AbstractMeter meter)
           
protected  void setManager(MeterService manager)
           
 
Methods inherited from class com.caucho.env.service.AbstractResinSubSystem
destroy, getStartPriority, getStopPriority, preCreate, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeterService

protected MeterService()
Method Detail

setManager

protected void setManager(MeterService manager)

getCurrent

public static MeterService getCurrent()

create

public static MeterService create()

getMeter

public static AbstractMeter getMeter(java.lang.String name)

createAverageTimeMeter

public static AverageTimeMeter createAverageTimeMeter(java.lang.String name)

createSampleCountMeter

public static SampleCountMeter createSampleCountMeter(java.lang.String name)

createCountMeter

public static CountMeter createCountMeter(java.lang.String name)

createJmx

public static AbstractMeter createJmx(java.lang.String name,
                                      java.lang.String objectName,
                                      java.lang.String attribute)

createJmxDelta

public static AbstractMeter createJmxDelta(java.lang.String name,
                                           java.lang.String objectName,
                                           java.lang.String attribute)

createTimeMeter

public static TimeMeter createTimeMeter(java.lang.String name)

createTimeRangeMeter

public static TimeRangeMeter createTimeRangeMeter(java.lang.String baseName)

createAverageMeter

public static AverageMeter createAverageMeter(java.lang.String name,
                                              java.lang.String type)

createActiveTimeMeter

public static ActiveTimeMeter createActiveTimeMeter(java.lang.String name)

createActiveTimeMeter

public static ActiveTimeMeter createActiveTimeMeter(java.lang.String name,
                                                    java.lang.String type,
                                                    java.lang.String subName)

createActiveMeter

public static ActiveMeter createActiveMeter(java.lang.String name)
An ActiveMeter counts the number of an active resource, e.g. the number of active connections.


createActiveMeter

public static ActiveMeter createActiveMeter(java.lang.String name,
                                            java.lang.String subName)

createSimpleSemaphoreMeter

public static SemaphoreMeter createSimpleSemaphoreMeter(java.lang.String name)

createSemaphoreMeter

public static SemaphoreMeter createSemaphoreMeter(java.lang.String name)
Creates a semaphore meter and generate Count, Min, and Max meter.


createMeter

public AbstractMeter createMeter(AbstractMeter newMeter)

registerMeter

protected void registerMeter(AbstractMeter meter)