|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectamip.api.examples.util.Helpers
public class Helpers
Helper class for examples
Constructor Summary | |
---|---|
Helpers()
|
Method Summary | |
---|---|
static void |
setupTerminationHandler(java.lang.Thread thread)
Sets up a handler for INT signal, from console you can press Ctrl+C to activate the handler. |
static void |
setupTerminationHandlerAndWait(java.lang.Thread thread)
This method combines the calls to setupTerminationHandler(java.lang.Thread) and waitUntilTerminated() . |
static void |
waitUntilTerminated()
This method locks current thread, the execution will continue only when InterruptedException is rised, before using this method you should set up signal handler which will interrupt waiting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Helpers()
Method Detail |
---|
public static void waitUntilTerminated()
public static void setupTerminationHandler(java.lang.Thread thread)
thread
- a thread to interrupt.public static void setupTerminationHandlerAndWait(java.lang.Thread thread)
setupTerminationHandler(java.lang.Thread)
and waitUntilTerminated()
.
thread
- a thread to lock and then release upon INT signal (Ctrl+C).
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |