public class MeterService extends AbstractResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Modifier | Constructor and Description |
---|---|
protected |
MeterService() |
Modifier and Type | Method and Description |
---|---|
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 |
createJmx(java.lang.String name,
java.lang.String objectName,
java.lang.String attribute,
boolean isOptional) |
static AbstractMeter |
createJmxCalculation(java.lang.String name,
JmxExpr expr) |
static AbstractMeter |
createJmxDelta(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,
boolean isOptional) |
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) |
destroy, getStartPriority, getStopPriority, isActive, preCreate, start, stop, toString
protected void setManager(MeterService manager)
public static MeterService getCurrent()
public static MeterService create()
public static AbstractMeter getMeter(java.lang.String name)
public static AverageTimeMeter createAverageTimeMeter(java.lang.String name)
public static SampleCountMeter createSampleCountMeter(java.lang.String name)
public static CountMeter createCountMeter(java.lang.String name)
public static AbstractMeter createJmx(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
public static AbstractMeter createJmx(java.lang.String name, java.lang.String objectName, java.lang.String attribute, boolean isOptional)
public static AbstractMeter createJmxDelta(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
public static AbstractMeter createJmxDelta(java.lang.String name, java.lang.String objectName, java.lang.String attribute, boolean isOptional)
public static AbstractMeter createJmxCalculation(java.lang.String name, JmxExpr expr)
public static TimeMeter createTimeMeter(java.lang.String name)
public static TimeRangeMeter createTimeRangeMeter(java.lang.String baseName)
public static AverageMeter createAverageMeter(java.lang.String name, java.lang.String type)
public static ActiveTimeMeter createActiveTimeMeter(java.lang.String name)
public static ActiveTimeMeter createActiveTimeMeter(java.lang.String name, java.lang.String type, java.lang.String subName)
public static ActiveMeter createActiveMeter(java.lang.String name)
public static ActiveMeter createActiveMeter(java.lang.String name, java.lang.String subName)
public static SemaphoreMeter createSimpleSemaphoreMeter(java.lang.String name)
public static SemaphoreMeter createSemaphoreMeter(java.lang.String name)
public AbstractMeter createMeter(AbstractMeter newMeter)
protected void registerMeter(AbstractMeter meter)