org.ow2.jasmine.probe.collectors.jmx.internal
Class JmxWorker

java.lang.Object
  extended by java.lang.Thread
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JmxWorker(JasmineTarget target, JmxConnectionService jmxConnectionService)
          Constructor a worker for a given target.
 
Method Summary
 void addCollector(JmxCollector col)
          Add a new Collector to this worker.
 boolean hasCollector(JmxCollector col)
          Check if a Collector belongs to this worker's collectors.
 void remove()
          remove it
 boolean removeCollector(JmxCollector col)
           
 void run()
          run method for Thread implementation.
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmxWorker

public JmxWorker(JasmineTarget target,
                 JmxConnectionService jmxConnectionService)
Constructor a worker for a given target.

Method Detail

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.