org.ow2.jasmine.probe.collectors.derived.internal
Class DerivedCollector

java.lang.Object
  extended by org.ow2.jasmine.probe.collectors.JCollector
      extended by org.ow2.jasmine.probe.collectors.derived.internal.DerivedCollector
All Implemented Interfaces:
JasmineCollector

public class DerivedCollector
extends JCollector

Derived collector implementation.

Author:
durieuxp, danesa

Field Summary
 
Fields inherited from class org.ow2.jasmine.probe.collectors.JCollector
hostName, indicator, logger, MISC_TARGET, NO_TARGET, period, probeId, probeManager
 
Constructor Summary
DerivedCollector(String probeId, JasmineIndicator indic, int period, String op, JasmineCollector source)
          Constructor
 
Method Summary
 JasmineIndicatorValue getLastResult()
          return the last result for this indicator
 void startPolling()
          Start polling
 void stopPolling()
          Stop polling
 
Methods inherited from class org.ow2.jasmine.probe.collectors.JCollector
addJsr, addLongJsr, addLongValues, addValues, averageJsr, diffJsr, diffLongValues, diffValues, divideJsr, divideLongValues, divideValues, getDefaultTarget, getDomainName, getIndicator, getIndicatorName, getJsr, getProbeId, getServerName, isRemoved, jsrProps, longValue, maxJsr, minJsr, multiplyJsr, multiplyLongValues, multiplyValues, remove, setProbeManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerivedCollector

public DerivedCollector(String probeId,
                        JasmineIndicator indic,
                        int period,
                        String op,
                        JasmineCollector source)
Constructor

Parameters:
probeId - probe identifier
indic - indicator definition VO
period - execution period
op - derived operation
source - collector that provides the initial values.
Method Detail

getLastResult

public JasmineIndicatorValue getLastResult()
                                    throws JasmineCollectorException
return the last result for this indicator

Specified by:
getLastResult in interface JasmineCollector
Specified by:
getLastResult in class JCollector
Returns:
JasmineIndicatorValue
Throws:
JasmineCollectorException

stopPolling

public void stopPolling()
Stop polling

Specified by:
stopPolling in interface JasmineCollector
Specified by:
stopPolling in class JCollector

startPolling

public void startPolling()
Start polling

Specified by:
startPolling in interface JasmineCollector
Specified by:
startPolling in class JCollector


Copyright © 2013 OW2 Consortium. All Rights Reserved.