Rio Project 4.2 API Documentation



org.rioproject.watch
Class SamplingWatch

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.watch.SamplingWatch
All Implemented Interfaces:
PeriodicWatchMBean, ThresholdWatchMBean, WatchMBean

public class SamplingWatch
extends PeriodicWatch

An implementation of a PeriodicWatch that samples a bean's method


Field Summary
 
Fields inherited from class org.rioproject.watch.PeriodicWatch
DEFAULT_PERIOD
 
Fields inherited from class org.rioproject.watch.Watch
COMPONENT, DEFAULT_VIEW, id, localRef, logger, watchDataSource
 
Constructor Summary
SamplingWatch(String id)
           
SamplingWatch(String id, Configuration config)
           
SamplingWatch(WatchDataSource watchDataSource, String id)
           
 
Method Summary
 void checkValue()
          Abstract method to check the watch's value at the periodic interval
 String getProperty()
           
 void setAccessor(Method accessor)
           
 void setBean(Object bean)
           
 void setProperty(String property)
           
 
Methods inherited from class org.rioproject.watch.PeriodicWatch
getPeriod, setPeriod, start, stop
 
Methods inherited from class org.rioproject.watch.ThresholdWatch
addThresholdListener, addWatchRecord, 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, setWatchDataSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

SamplingWatch

public SamplingWatch(String id)

SamplingWatch

public SamplingWatch(String id,
                     Configuration config)

SamplingWatch

public SamplingWatch(WatchDataSource watchDataSource,
                     String id)
Method Detail

setProperty

public void setProperty(String property)

getProperty

public String getProperty()

setBean

public void setBean(Object bean)

setAccessor

public void setAccessor(Method accessor)

checkValue

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


Copyright © Rio Project.

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