org.ow2.jasmine.probe.collectors.df.internal
Class DfCollectorService
java.lang.Object
org.ow2.jasmine.probe.collectors.JCollectorService
org.ow2.jasmine.probe.collectors.df.internal.DfCollectorService
- All Implemented Interfaces:
- org.ow2.jasmine.probe.collector.JasmineCollectorService
public class DfCollectorService
- extends org.ow2.jasmine.probe.collectors.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 java.lang.String |
PROP_DISK
The name of the property allowing to get disk name. |
| Fields inherited from class org.ow2.jasmine.probe.collectors.JCollectorService |
collectorList, logger, properties |
|
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. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.ow2.jasmine.probe.collectors.JCollectorService |
getDependantIndicators, getPropertiesInfo, removeCollectors |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
df
protected DiskFree df
- DiskFree thread collector
In this implementation, we have only one thread.
DfCollectorService
public DfCollectorService()
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- Specified by:
getCollector in class org.ow2.jasmine.probe.collectors.JCollectorService
- Parameters:
indicator - contains the indicator's parameters.period - in secondprobeid - the name of the probe that gets the collector
- Returns:
- the Collector
- Throws:
org.ow2.jasmine.probe.collector.JasmineCollectorException - operation failed
Copyright © 2011 OW2 Consortium. All Rights Reserved.