Rio Project 4.2 API Documentation



org.rioproject.system.measurable
Interface MeasurableCapabilityMBean

All Superinterfaces:
PeriodicWatchMBean, ThresholdWatchMBean, WatchMBean
All Known Subinterfaces:
DiskSpaceMBean
All Known Implementing Classes:
CPU, DiskSpace, MeasurableCapability, Memory, MemoryPool, SystemMemory

public interface MeasurableCapabilityMBean
extends PeriodicWatchMBean

Provides a standard MBean to use when administering a MeasurableCapability using JMX

Author:
Ming Fang, Dennis Reedy

Method Summary
 int getSampleSize()
          Get the sampleSize property
 double getUtilization()
          Provide a method to return the utilization associated with this MeasurableCapability
 void setSampleSize(int sampleSize)
          Set the sampleSize for the MeasurableCapability
 
Methods inherited from interface org.rioproject.watch.PeriodicWatchMBean
checkValue, getPeriod, setPeriod, start, stop
 
Methods inherited from interface org.rioproject.watch.ThresholdWatchMBean
getBreachedCount, getClearedCount, getCurrentHighThreshold, getCurrentLowThreshold, getHighThreshold, getLowThreshold, setCurrentHighThreshold, setCurrentLowThreshold
 
Methods inherited from interface org.rioproject.watch.WatchMBean
clear, getCalculables, getId, getLastCalculableValue
 

Method Detail

setSampleSize

void setSampleSize(int sampleSize)
Set the sampleSize for the MeasurableCapability

Parameters:
sampleSize - The number of samples the MeasurableCapability will accumulate in the period defined by the period in order to produce a result.

getSampleSize

int getSampleSize()
Get the sampleSize property

Returns:
The number of samples the MeasurableCapability will accumulate in the period defined by the period in order to produce a result.

getUtilization

double getUtilization()
Provide a method to return the utilization associated with this MeasurableCapability


Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.