org.ow2.jasmine.probe.collector
Interface JasmineCollector


public interface JasmineCollector

Common interface for JasmineProbe collectors.


Method Summary
 String getIndicatorName()
          Return the name of the indicator corresponding to this Collector
 JasmineIndicatorValue getLastResult()
          Retrieve the last results for this indicator.
 String getProbeId()
           
 boolean isRemoved()
           
 void remove()
          Mark removed
 void startPolling()
          Start polling
 void stopPolling()
          Stop polling
 

Method Detail

getLastResult

JasmineIndicatorValue getLastResult()
                                    throws JasmineCollectorException
Retrieve the last results for this indicator. Called by the running probe every 'period' seconds. It may also be called by another collector that uses this one as a source for values to be processed.

Returns:
JasmineIndicatorValue or null if no result available
Throws:
JasmineCollectorException

getIndicatorName

String getIndicatorName()
Return the name of the indicator corresponding to this Collector


getProbeId

String getProbeId()
Returns:
Return the Id of the probe corresponding to this Collector

stopPolling

void stopPolling()
Stop polling


startPolling

void startPolling()
Start polling


remove

void remove()
Mark removed


isRemoved

boolean isRemoved()
Returns:
true if the collector was marked as removed


Copyright © 2013 OW2 Consortium. All Rights Reserved.