|
||||||||||
| 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.jmx.internal.JmxCollector
public class JmxCollector
Collector implementation for JMX. This implementation works with a separate thread used to pre-collect the results. Using a thread is interesting when we do not want to be stuck in case info cannot be got because the target is off.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jasmine.probe.collectors.JCollector |
|---|
indicator, logger, name, period, probeManager |
| Constructor Summary | |
|---|---|
JmxCollector(java.lang.String name,
org.ow2.jasmine.probe.JasmineIndicator indicator,
int period,
java.lang.String mbean,
java.lang.String csv)
Constructor |
|
| Method Summary | |
|---|---|
void |
addResult(java.util.List<Metric> metrics)
Add a new result to the list. |
java.util.Collection<java.lang.String> |
geAttrlist()
Getter for attrlist (list of provided attribute and or fragment names). |
org.ow2.jasmine.probe.JasmineIndicatorValue |
getLastResult()
Retrieve the last results for this indicator This method return a List of results in case indicator represents actually a list of values. |
javax.management.ObjectName |
getObjectName()
|
protected boolean |
hasAttributes()
Allows the JmxWorker to know if attributes and/or fragments are provided by the indicator definition. |
boolean |
needResult()
Check if this Collector needs a new result. |
void |
startPolling()
Start polling |
void |
stopPolling()
Stop polling |
| Methods inherited from class org.ow2.jasmine.probe.collectors.JCollector |
|---|
addValues, diffValues, divideValues, getIndicator, getName, longValue, multiplyValues, setProbeManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JmxCollector(java.lang.String name,
org.ow2.jasmine.probe.JasmineIndicator indicator,
int period,
java.lang.String mbean,
java.lang.String csv)
indicator - definition| Method Detail |
|---|
public java.util.Collection<java.lang.String> geAttrlist()
public javax.management.ObjectName getObjectName()
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
org.ow2.jasmine.probe.collector.JasmineCollectorException - an ObjectName could not be obtained as the pattern
in not well formed given the JMX naming conventions.protected boolean hasAttributes()
public org.ow2.jasmine.probe.JasmineIndicatorValue getLastResult()
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
getLastResult in interface org.ow2.jasmine.probe.collector.JasmineCollectorgetLastResult in class org.ow2.jasmine.probe.collectors.JCollectororg.ow2.jasmine.probe.collector.JasmineCollectorExceptionpublic void stopPolling()
stopPolling in interface org.ow2.jasmine.probe.collector.JasmineCollectorstopPolling in class org.ow2.jasmine.probe.collectors.JCollectorpublic void startPolling()
startPolling in interface org.ow2.jasmine.probe.collector.JasmineCollectorstartPolling in class org.ow2.jasmine.probe.collectors.JCollectorpublic boolean needResult()
public void addResult(java.util.List<Metric> metrics)
metrics -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||