org.ow2.jasmine.probe.collectors.jmx.internal
Class JmxCollectorSimple
java.lang.Object
org.ow2.jasmine.probe.collectors.JCollector
org.ow2.jasmine.probe.collectors.jmx.internal.JmxCollectorBase
org.ow2.jasmine.probe.collectors.jmx.internal.JmxCollectorSimple
- All Implemented Interfaces:
- JasmineCollector
public class JmxCollectorSimple
- extends JmxCollectorBase
JmxCollector for tests. Doesn't use JmxWorker to collect data from MBeans.
It uses a private JmxProxy object for jmx interaction, but this object is not threaded.
- Author:
- danesa
|
Field Summary |
protected int |
nb
Number of collectors for a given indicator (the current one) and a given probe. |
| 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, setProbeManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nb
protected int nb
- Number of collectors for a given indicator (the current one) and a given probe.
By default, one collector for an indicator and a probe.
If the same indicator is used several times in that probe, nb will be incremented to the number of usages
JmxCollectorSimple
public JmxCollectorSimple(String probeId,
JasmineIndicator indicator,
int period,
String mbean,
String csv)
throws JasmineCollectorException
- Constructor
- Parameters:
probeId - probe Identifierindicator - JasmineIndicator definitionperiod - in secondsmbean - MBean patterncsv - CSV list of attributes
- Throws:
JasmineCollectorException
getLastResult
public JasmineIndicatorValue getLastResult()
throws JasmineCollectorException
- Specified by:
getLastResult in interface JasmineCollector- Specified by:
getLastResult in class JCollector
- Throws:
JasmineCollectorException
startPolling
public void startPolling()
- Start polling
- Specified by:
startPolling in interface JasmineCollector- Specified by:
startPolling in class JCollector
stopPolling
public void stopPolling()
- Stop polling
- Specified by:
stopPolling in interface JasmineCollector- Specified by:
stopPolling in class JCollector
remove
public void remove()
- Mark collector as removed.
Called when a JasmineCollectorService stops.
- Specified by:
remove in interface JasmineCollector- Overrides:
remove in class JCollector
setJmxConnectionService
protected void setJmxConnectionService(JmxConnectionService jmxConnectionService)
setTarget
protected void setTarget(JasmineTarget target)
Copyright © 2012 OW2 Consortium. All Rights Reserved.