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:
org.ow2.jasmine.probe.collector.JasmineCollector

public class JAggregateCollector
extends org.ow2.jasmine.probe.collectors.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, MISC_TARGET, NO_TARGET, period, probeId, probeManager
 
Constructor Summary
JAggregateCollector(String probeId, org.ow2.jasmine.probe.JasmineIndicator def, int period, String operation, org.ow2.jasmine.probe.collector.JasmineCollector source, String merged)
          Constructor
 
Method Summary
 org.ow2.jasmine.probe.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
 

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,
                           org.ow2.jasmine.probe.JasmineIndicator def,
                           int period,
                           String operation,
                           org.ow2.jasmine.probe.collector.JasmineCollector source,
                           String merged)
Constructor

Parameters:
probeId -
def -
period -
source -
Method Detail

getLastResult

public org.ow2.jasmine.probe.JasmineIndicatorValue getLastResult()
                                                          throws org.ow2.jasmine.probe.collector.JasmineCollectorException
return the last result for this indicator

Specified by:
getLastResult in interface org.ow2.jasmine.probe.collector.JasmineCollector
Specified by:
getLastResult in class org.ow2.jasmine.probe.collectors.JCollector
Returns:
JasmineIndicatorValue
Throws:
org.ow2.jasmine.probe.collector.JasmineCollectorException

stopPolling

public void stopPolling()
Stop polling

Specified by:
stopPolling in interface org.ow2.jasmine.probe.collector.JasmineCollector
Specified by:
stopPolling in class org.ow2.jasmine.probe.collectors.JCollector

startPolling

public void startPolling()
Start polling

Specified by:
startPolling in interface org.ow2.jasmine.probe.collector.JasmineCollector
Specified by:
startPolling in class org.ow2.jasmine.probe.collectors.JCollector


Copyright © 2013 OW2 Consortium. All Rights Reserved.