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

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

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

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.
protected  org.ow2.util.log.Log logger
          Logger.
static java.lang.String PROP_DISK
          The name of the property allowing to get disk name.
 
Constructor Summary
DfCollectorService()
           
 
Method Summary
 org.ow2.jasmine.probe.collector.JasmineCollector getCollector(org.ow2.jasmine.probe.JasmineIndicator indicator, int period, java.lang.String probeid)
          Create a Collector for this JasmineIndicator.
 java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> getPropertiesInfo()
          Retrieve the description of all specific properties hidden in JasmineCollector Return a Collection of all properties with their description
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_DISK

public static final java.lang.String PROP_DISK
The name of the property allowing to get disk name.

See Also:
Constant Field Values

logger

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


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 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
Create a Collector for this JasmineIndicator. Called by the JasmineProbeManager when first starting a probe (at the probe creation).

Specified by:
getCollector in interface org.ow2.jasmine.probe.collector.JasmineCollectorService
Parameters:
indicator - contains the indicator's parameters.
period - in second
probeid - the name of the probe that gets the collector
Returns:
the Collector
Throws:
org.ow2.jasmine.probe.collector.JasmineCollectorException - operation failed

getPropertiesInfo

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

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


Copyright © 2011 OW2 Consortium. All Rights Reserved.