org.ow2.jasmine.probe.collectors.slope.internal
Class SlopeCollectorService

java.lang.Object
  extended by org.ow2.jasmine.probe.collectors.JCollectorService
      extended by org.ow2.jasmine.probe.collectors.slope.internal.SlopeCollectorService
All Implemented Interfaces:
JasmineCollectorService

public class SlopeCollectorService
extends JCollectorService

Author:
durieuxp

Field Summary
static String LONG_DESC
           
static String SHORT_DESC
          Description
static String SOURCE_DESC
          Sources
static int SOURCE_MAX
           
static int SOURCE_MIN
           
 
Fields inherited from class org.ow2.jasmine.probe.collectors.JCollectorService
collectorInfo, logger, properties
 
Constructor Summary
SlopeCollectorService()
           
 
Method Summary
 JasmineCollector getCollector(JasmineIndicator indicator, JasmineProbe probe)
          Get a Collector for this indicator and this probe.
 List<String> getDependantIndicators(JasmineIndicator indic)
          return the List of indicators used by this indicator.
 void start()
           
 void stop()
           
 
Methods inherited from class org.ow2.jasmine.probe.collectors.JCollectorService
addCollector, getCollectorInfo, getPropertiesInfo, getType, removeCollectors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_DESC

public static final String SHORT_DESC
Description

See Also:
Constant Field Values

LONG_DESC

public static final String LONG_DESC
See Also:
Constant Field Values

SOURCE_DESC

public static final String SOURCE_DESC
Sources

See Also:
Constant Field Values

SOURCE_MIN

public static final int SOURCE_MIN
See Also:
Constant Field Values

SOURCE_MAX

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

SlopeCollectorService

public SlopeCollectorService()
Method Detail

start

public void start()

stop

public void stop()

getCollector

public JasmineCollector getCollector(JasmineIndicator indicator,
                                     JasmineProbe probe)
                              throws JasmineCollectorException
Get a Collector for this indicator and this probe. First parse indicator properties, and get a collector for the numerator and denominator indicators. The goal is to 'notify' these collectors that an additional 'consumer' collector exists for them. This allows for collectors that manage a cache of values to update cache size.

Specified by:
getCollector in interface JasmineCollectorService
Specified by:
getCollector in class JCollectorService
Parameters:
indicator - the indicator for which values are collected by the collector
probe - the probe using the indicator
Returns:
the JasmineCollector instance created to collect values for the given indicator within the given probe.
Throws:
JasmineCollectorException - The collector could not be created.

getDependantIndicators

public List<String> getDependantIndicators(JasmineIndicator indic)
return the List of indicators used by this indicator.

Specified by:
getDependantIndicators in interface JasmineCollectorService
Overrides:
getDependantIndicators in class JCollectorService
Parameters:
indic - JasmineIndicator
Returns:


Copyright © 2012 OW2 Consortium. All Rights Reserved.