|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aitools.programd.util.ManagedProcesses
public class ManagedProcesses
Controls processes that run in separate threads and need to be shut down before the bot exits.
| Constructor Summary | |
|---|---|
ManagedProcesses(Core coreToUse)
Creates a ManagedProcesses object. |
|
| Method Summary | |
|---|---|
ManagedProcess |
get(String name)
Returns a given process. |
void |
shutdownAll()
Shuts down all registered processes. |
void |
start(ManagedProcess process,
String name)
Adds a process to the registry and starts it. |
Collection<ManagedProcess> |
values()
Returns an iterator on the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedProcesses(Core coreToUse)
coreToUse - the Core to which to attach this| Method Detail |
|---|
public void start(ManagedProcess process,
String name)
process - the process to addname - a name by which its thread will be identifiedpublic Collection<ManagedProcess> values()
public ManagedProcess get(String name)
name - the name of the process
public void shutdownAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||