org.ow2.jasmine.probe.collectors
Class JCollectorService

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

public abstract class JCollectorService
extends java.lang.Object
implements org.ow2.jasmine.probe.collector.JasmineCollectorService

Base class for Collector Service

Author:
durieuxp

Field Summary
protected  java.util.Map<java.lang.String,JCollector> collectorList
          List of collectors
protected  org.ow2.util.log.Log logger
          Logger.
protected  java.util.List<org.ow2.jasmine.probe.JasminePropertyInfo> properties
          Info about Properties
 
Constructor Summary
JCollectorService()
           
 
Method Summary
abstract  org.ow2.jasmine.probe.collector.JasmineCollector getCollector(org.ow2.jasmine.probe.JasmineIndicator indicator, int period, java.lang.String probeid)
           
 java.util.List<java.lang.String> getDependantIndicators(org.ow2.jasmine.probe.JasmineIndicator indic)
          return the List of indicators used by this indicator.
 java.util.List<org.ow2.jasmine.probe.JasminePropertyInfo> getPropertiesInfo()
          Retrieve the description of all specific properties hidden in JasmineOutput Return a Map of all properties with their description
 void removeCollectors(java.lang.String name)
          Remove Collectors attached to this Indicator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.ow2.util.log.Log logger
Logger.


collectorList

protected java.util.Map<java.lang.String,JCollector> collectorList
List of collectors


properties

protected java.util.List<org.ow2.jasmine.probe.JasminePropertyInfo> properties
Info about Properties

Constructor Detail

JCollectorService

public JCollectorService()
Method Detail

getCollector

public abstract org.ow2.jasmine.probe.collector.JasmineCollector getCollector(org.ow2.jasmine.probe.JasmineIndicator indicator,
                                                                              int period,
                                                                              java.lang.String probeid)
                                                                       throws org.ow2.jasmine.probe.collector.JasmineCollectorException
Specified by:
getCollector in interface org.ow2.jasmine.probe.collector.JasmineCollectorService
Throws:
org.ow2.jasmine.probe.collector.JasmineCollectorException

removeCollectors

public void removeCollectors(java.lang.String name)
Remove Collectors attached to this Indicator. Called usually when the indicator has changed or is removed.

Specified by:
removeCollectors in interface org.ow2.jasmine.probe.collector.JasmineCollectorService
Parameters:
name - Indicator name

getPropertiesInfo

public java.util.List<org.ow2.jasmine.probe.JasminePropertyInfo> getPropertiesInfo()
Retrieve the description of all specific properties hidden in JasmineOutput Return a Map of all properties with their description

Specified by:
getPropertiesInfo in interface org.ow2.jasmine.probe.collector.JasmineCollectorService
Returns:
a Map of property descriptions

getDependantIndicators

public java.util.List<java.lang.String> getDependantIndicators(org.ow2.jasmine.probe.JasmineIndicator indic)
return the List of indicators used by this indicator. This default version return an empty list.

Specified by:
getDependantIndicators in interface org.ow2.jasmine.probe.collector.JasmineCollectorService
Parameters:
indic - JasmineIndicator
Returns:


Copyright © 2011 OW2 Consortium. All Rights Reserved.