|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.BotProcesses
public class BotProcesses
Controls processes that run in separate threads and need to be shut down before the bot exits.
Method Summary | |
---|---|
static BotProcess |
get(java.lang.String name)
Returns a given process. |
static java.util.Iterator |
getRegistryIterator()
Returns an iterator on the registry. |
static void |
shutdownAll()
Shuts down all registered processes. |
static void |
start(BotProcess process,
java.lang.String name)
Adds a process to the registry and starts it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void start(BotProcess process, java.lang.String name)
process
- the process to addname
- a name by which its thread will be identifiedpublic static java.util.Iterator getRegistryIterator()
public static BotProcess get(java.lang.String name)
name
- the name of the process
public static void shutdownAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |