org.ow2.jasmine.probe.collectors.lewys.internal
Class LewysCollector

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

public class LewysCollector
extends JCollector


Field Summary
protected  String cmd
          Lewys cmd: network, disk, memory, ...
protected  org.objectweb.lewys.probe.Probe probe
          Lewys probe used to collect results
protected  String[] resources
          String Array of Resource names
protected  int[] rids
          resourceIds
 
Fields inherited from class org.ow2.jasmine.probe.collectors.JCollector
hostName, indicator, logger, period, probeId, probeManager
 
Constructor Summary
LewysCollector(String name, JasmineIndicator indicator, int period, int ostype)
          Constructor
 
Method Summary
 JasmineIndicatorValue getLastResult()
          Retrieve the last results 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

cmd

protected String cmd
Lewys cmd: network, disk, memory, ...


probe

protected org.objectweb.lewys.probe.Probe probe
Lewys probe used to collect results


resources

protected String[] resources
String Array of Resource names


rids

protected int[] rids
resourceIds

Constructor Detail

LewysCollector

public LewysCollector(String name,
                      JasmineIndicator indicator,
                      int period,
                      int ostype)
Constructor

Parameters:
name - Collector name
indicator - definition
period - in seconds
ostype - Type of the underlying operating system
Method Detail

getLastResult

public JasmineIndicatorValue getLastResult()
                                    throws JasmineCollectorException
Retrieve the last results 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.