org.ow2.jasmine.probe.collectors.aggregate.internal
Class JAggregateCollector

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

public class JAggregateCollector
extends JCollector

Aggregate collector implementation.

Author:
danesa

Field Summary
static int OP_AVERAGE
           
static int OP_MAX
           
static int OP_MIN
          List of supported operations
static int OP_SUM
           
 
Fields inherited from class org.ow2.jasmine.probe.collectors.JCollector
hostName, indicator, logger, period, probeId, probeManager
 
Constructor Summary
JAggregateCollector(String probeId, JasmineIndicator def, int period, String operation, JasmineCollector source, String merged)
          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, getDomainName, getIndicator, getIndicatorName, 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
 

Field Detail

OP_MIN

public static final int OP_MIN
List of supported operations

See Also:
Constant Field Values

OP_MAX

public static final int OP_MAX
See Also:
Constant Field Values

OP_SUM

public static final int OP_SUM
See Also:
Constant Field Values

OP_AVERAGE

public static final int OP_AVERAGE
See Also:
Constant Field Values
Constructor Detail

JAggregateCollector

public JAggregateCollector(String probeId,
                           JasmineIndicator def,
                           int period,
                           String operation,
                           JasmineCollector source,
                           String merged)
Constructor

Parameters:
probeId -
def -
period -
source -
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 © 2012 OW2 Consortium. All Rights Reserved.