|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.ow2.jasmine.monitoring.mbeancmd.CmdThread
public class CmdThread
Extend Thread class in order to implement command status control and execution delay. Status control is used when command control is made by the EventSwitchManager MBean. Execution delay is currently used by the MBeanCmdWrapper that is is used by Mule.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected java.lang.String |
cmdStatus
|
protected java.lang.String[] |
commandArgs
|
protected long |
delay
delay to start used by the MBeanCmdWrapper |
protected java.lang.String |
error
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CmdThread(java.lang.String[] args,
long delay)
Create a thread in order to execute a command. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCmdStatus()
|
java.lang.String |
getErrorMessage()
|
void |
run()
|
void |
setCmdStatus(java.lang.String cmdStatus)
Status set by the command dispatcher. |
void |
setErrorMessage(java.lang.String mess)
|
| 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 |
|---|
protected java.lang.String[] commandArgs
protected java.lang.String cmdStatus
protected long delay
protected java.lang.String error
| Constructor Detail |
|---|
public CmdThread(java.lang.String[] args,
long delay)
args - the command's arguments.| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.lang.String getCmdStatus()
public void setCmdStatus(java.lang.String cmdStatus)
cmdStatus - new statuspublic java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String mess)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||