org.ow2.jasmine.probe.collectors.jmx.internal
Class JmxWorker
java.lang.Object
java.lang.Thread
org.ow2.jasmine.probe.collectors.jmx.internal.JmxWorker
- All Implemented Interfaces:
- Runnable
public class JmxWorker
- extends Thread
Poll a Jmx target to get mbean attributes values.
- Author:
- durieuxp
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
JmxWorker
public JmxWorker(JasmineTarget target,
JmxConnectionService jmxConnectionService)
- Constructor a worker for a given target.
remove
public void remove()
- remove it
addCollector
public void addCollector(JmxCollector col)
- Add a new Collector to this worker.
hasCollector
public boolean hasCollector(JmxCollector col)
- Check if a Collector belongs to this worker's collectors.
- Parameters:
col -
- Returns:
removeCollector
public boolean removeCollector(JmxCollector col)
run
public void run()
- run method for Thread implementation.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
Copyright © 2012 OW2 Consortium. All Rights Reserved.