Rio Project 4.2 API Documentation



org.rioproject.system.measurable.disk
Class DiskSpace

java.lang.Object
  extended by org.rioproject.watch.Watch
      extended by org.rioproject.watch.ThresholdWatch
          extended by org.rioproject.watch.PeriodicWatch
              extended by org.rioproject.system.measurable.MeasurableCapability
                  extended by org.rioproject.system.measurable.disk.DiskSpace
All Implemented Interfaces:
ResourceCostProducer, DiskSpaceMBean, MeasurableCapabilityMBean, PeriodicWatchMBean, ThresholdWatchMBean, WatchMBean

public class DiskSpace
extends MeasurableCapability
implements DiskSpaceMBean

The DiskSpace object is a MeasurableCapability which monitors a ComputeResource's DiskSpace utilization

Author:
Dennis Reedy

Field Summary
static String VIEW
           
 
Fields inherited from class org.rioproject.system.measurable.MeasurableCapability
lastMeasured, monitor, sampleSize
 
Fields inherited from class org.rioproject.watch.PeriodicWatch
DEFAULT_PERIOD
 
Fields inherited from class org.rioproject.watch.Watch
DEFAULT_VIEW, id, localRef, watchDataSource
 
Constructor Summary
DiskSpace(Configuration config)
          Construct a new DiskSpace object
 
Method Summary
 void checkValue()
          Abstract method to check the watch's value at the periodic interval
 double getCapacity()
          Get the computed utilization for this DiskSpace object
 double getUtilization()
          Get the computed utilization for this DiskSpace object
 void start()
          Override PeriodicWatch.start() to get an initial reading prior to scheduling
 
Methods inherited from class org.rioproject.system.measurable.MeasurableCapability
addSecondaryThresholdManager, addWatchRecord, calculateResourceCost, getConfiguration, getMeasuredResource, getObservable, getSampleSize, getSLA, getThresholdManagers, isEnabled, removeSecondaryThresholdManager, setEnabled, setLastMeasuredResource, setMeasurableMonitor, setResourceCostModel, setSampleSize, setSLA, setWatchDataSource
 
Methods inherited from class org.rioproject.watch.PeriodicWatch
getPeriod, setPeriod, stop
 
Methods inherited from class org.rioproject.watch.ThresholdWatch
addThresholdListener, getBreachedCount, getClearedCount, getCurrentHighThreshold, getCurrentLowThreshold, getHighThreshold, getLowThreshold, getThresholdManager, getThresholdValues, removeThresholdListener, setCurrentHighThreshold, setCurrentLowThreshold, setThresholdValues
 
Methods inherited from class org.rioproject.watch.Watch
clear, equals, getCalculables, getId, getLastCalculableValue, getView, getWatchDataSource, hashCode, main, setView, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.rioproject.system.measurable.MeasurableCapabilityMBean
getSampleSize, setSampleSize
 
Methods inherited from interface org.rioproject.watch.PeriodicWatchMBean
getPeriod, setPeriod, 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
 

Field Detail

VIEW

public static final String VIEW
See Also:
Constant Field Values
Constructor Detail

DiskSpace

public DiskSpace(Configuration config)
Construct a new DiskSpace object

Parameters:
config - Configuration object
Method Detail

start

public void start()
Override PeriodicWatch.start() to get an initial reading prior to scheduling

Specified by:
start in interface PeriodicWatchMBean
Overrides:
start in class PeriodicWatch
See Also:
PeriodicWatchMBean.start()

getUtilization

public double getUtilization()
Get the computed utilization for this DiskSpace object

Specified by:
getUtilization in interface MeasurableCapabilityMBean
Returns:
Utilization computed for this component

getCapacity

public double getCapacity()
Get the computed utilization for this DiskSpace object

Specified by:
getCapacity in interface DiskSpaceMBean
Returns:
Utilization computed for this component

checkValue

public void checkValue()
Description copied from interface: PeriodicWatchMBean
Abstract method to check the watch's value at the periodic interval

Specified by:
checkValue in interface PeriodicWatchMBean

Copyright © Rio Project.

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