|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
de.dfki.lt.mary.modules.ProcessTimeoutDestroyer
public class ProcessTimeoutDestroyer
Destroy a given process if timeout occurs. This is used to monitor whether an external module gets stuck.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ProcessTimeoutDestroyer(ExternalModule module)
|
|
| Method Summary | |
|---|---|
boolean |
didDestroy()
|
void |
doWait(long time)
|
java.lang.Process |
getProcess()
|
long |
getTimeLimit()
|
void |
makeSureWereReady()
|
void |
pleaseExit()
|
void |
resetTimeLimit()
Reset the time limit to 0. |
void |
run()
|
void |
setTimeLimit(long timeLimit)
A timelimit > 0 will cause the timeout-destroy procedure to be started. |
| 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 |
| Constructor Detail |
|---|
public ProcessTimeoutDestroyer(ExternalModule module)
| Method Detail |
|---|
public java.lang.Process getProcess()
public long getTimeLimit()
public void setTimeLimit(long timeLimit)
resetTimeLimit() is taken into account. If a new thread sets a new
time limit while the old one is still running, the old one is silently
stopped, and the new one is started as if the old one was not there.
resetTimeLimit()public void resetTimeLimit()
public void pleaseExit()
public boolean didDestroy()
public void makeSureWereReady()
public void doWait(long time)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||