org.ow2.jasmine.monitoring.mbeancmd.osgi.internal
Class JProbeCmdThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.ow2.jasmine.monitoring.mbeancmd.CmdThread
          extended by org.ow2.jasmine.monitoring.mbeancmd.osgi.internal.JProbeCmdThread
All Implemented Interfaces:
java.lang.Runnable

public class JProbeCmdThread
extends org.ow2.jasmine.monitoring.mbeancmd.CmdThread

This class extend CmdThread for 2 purposes: - run a special CommandDispatcher for OSGi - manages properly the command status

Author:
durieuxp

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  org.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher commandDispatcher
           
protected  java.lang.String error
           
protected  org.ow2.jasmine.probe.api.JasmineProbe probe
           
protected  ProbeServiceImpl probeservice
           
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.CmdThread
cmdStatus, commandArgs, delay
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JProbeCmdThread(java.lang.String[] args, long delay, org.ow2.jasmine.probe.api.JasmineProbe probe, ProbeServiceImpl probeservice)
           
 
Method Summary
 void run()
          Start the command.
 void setCmdStatus(java.lang.String cmdStatus)
           
 void setDispatcher(org.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher disp)
           
 void tryStop()
           
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.CmdThread
getCmdStatus, getErrorMessage, setErrorMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commandDispatcher

protected org.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher commandDispatcher

probe

protected org.ow2.jasmine.probe.api.JasmineProbe probe

error

protected java.lang.String error

probeservice

protected ProbeServiceImpl probeservice
Constructor Detail

JProbeCmdThread

public JProbeCmdThread(java.lang.String[] args,
                       long delay,
                       org.ow2.jasmine.probe.api.JasmineProbe probe,
                       ProbeServiceImpl probeservice)
Method Detail

setDispatcher

public void setDispatcher(org.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher disp)

run

public void run()
Start the command.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class org.ow2.jasmine.monitoring.mbeancmd.CmdThread

tryStop

public void tryStop()

setCmdStatus

public void setCmdStatus(java.lang.String cmdStatus)
Overrides:
setCmdStatus in class org.ow2.jasmine.monitoring.mbeancmd.CmdThread


Copyright © 2011 OW2 Consortium. All Rights Reserved.