|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jasmine.probe.collectors.JCollector
org.ow2.jasmine.probe.collectors.df.internal.DfCollector
public class DfCollector
Collector implementation for df. This implementation works with a separate thread used to pre collect the results. A simpler implementation could be done by not using a thread. Using a thread is interesting when we do not want to be stuck in case info cannot be got.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jasmine.probe.collectors.JCollector |
|---|
hostName, indicator, logger, MISC_TARGET, NO_TARGET, period, probeId, probeManager |
| Constructor Summary | |
|---|---|
DfCollector(String probeId,
JasmineIndicator indicator,
int period)
Constructor |
|
| Method Summary | |
|---|---|
void |
addResult(JasmineIndicatorValue value)
Add a new result to the list. |
Collection<String> |
getDiskList()
Get the disk to be observed null if we are interested on all disks |
JasmineIndicatorValue |
getLastResult()
Retrieve the last results for this indicator This method return a List of results in case indicator represents actually a list of value (for example: df for ALL the disks) |
boolean |
needResult()
Check if this Collector needs a new result. |
void |
startPolling()
Restart 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, getDefaultTarget, getDomainName, getIndicator, getIndicatorName, getJsr, 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 |
| Constructor Detail |
|---|
public DfCollector(String probeId,
JasmineIndicator indicator,
int period)
indicator - definition| Method Detail |
|---|
public Collection<String> getDiskList()
public JasmineIndicatorValue getLastResult()
throws JasmineCollectorException
getLastResult in interface JasmineCollectorgetLastResult in class JCollectorJasmineCollectorExceptionpublic void stopPolling()
stopPolling in interface JasmineCollectorstopPolling in class JCollectorpublic void startPolling()
startPolling in interface JasmineCollectorstartPolling in class JCollectorpublic boolean needResult()
public void addResult(JasmineIndicatorValue value)
value -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||