org.ow2.jasmine.probe.collectors.df.internal
Class DfCollectorService

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

public class DfCollectorService
extends JCollectorService

This CollectorService implements the "df" unix command. Works only on linux like system, since the df command must exist.

Author:
durieuxp

Field Summary
protected  DiskFree df
          DiskFree thread collector In this implementation, we have only one thread.
static String LONG_DESC
           
static String PROP_DISK
          Properties
static String PROP_DISK_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
DfCollectorService()
           
 
Method Summary
 JasmineCollector getCollector(JasmineIndicator indicator, JasmineProbe probe)
          Create a Collector for this JasmineIndicator.
 void start()
           
 void stop()
           
 
Methods inherited from class org.ow2.jasmine.probe.collectors.JCollectorService
addCollector, getCollector, getCollectorInfo, getDependantIndicators, getDependantTargets, getPropertiesInfo, getType, removeCollectors, removeTarget
 
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

PROP_DISK

public static final String PROP_DISK
Properties

See Also:
Constant Field Values

PROP_DISK_DESC

public static final String PROP_DISK_DESC
See Also:
Constant Field Values

df

protected DiskFree df
DiskFree thread collector In this implementation, we have only one thread.

Constructor Detail

DfCollectorService

public DfCollectorService()
Method Detail

start

public void start()

stop

public void stop()

getCollector

public JasmineCollector getCollector(JasmineIndicator indicator,
                                     JasmineProbe probe)
                              throws JasmineCollectorException
Create a Collector for this JasmineIndicator. Called by the JasmineProbeManager when first starting a probe (at the probe creation).

Specified by:
getCollector in interface JasmineCollectorService
Specified by:
getCollector in class JCollectorService
Parameters:
indicator - contains the indicator's parameters.
probe - the probe that gets the collector
Returns:
the Collector
Throws:
JasmineCollectorException - operation failed


Copyright © 2013 OW2 Consortium. All Rights Reserved.