|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
bootstrapP.HumanListener
public class HumanListener
The thread that listen for requests by the administrator and performs the correspondent actions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static HumanInterface |
currentInt
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
HumanListener()
|
Method Summary | |
---|---|
private void |
executeAddMS(Command com)
Performs the "add message server" command. |
private void |
executeBackup(Command com)
Performs the "backup" command. |
private void |
executeBlockAssignation(Command com,
boolean block)
Performs the "block assignation" and "unblock assignation" commands. |
private void |
executeDeleteUser(Command com)
Performs the "delete user" command. |
private void |
executeMoveUser(Command com)
Performs the "move user" command. |
private void |
executeRemoveMS(Command com)
Performs the "remove message server" command. |
private void |
executeShowAll()
Performs the "show all" command. |
private void |
executeShowGlobalStats()
Performs the "show global statistics" command. |
private void |
executeShutdown(Command com)
Performs the "shutdown" command. |
private void |
executeTestPresence(Command com)
Performs the "test presence" command. |
private void |
executeUserList(Command com)
Performs the "show user list" command. |
void |
run()
|
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 |
---|
public static HumanInterface currentInt
Constructor Detail |
---|
public HumanListener()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void executeAddMS(Command com)
com
- the command given by the administrator, containing the message server data.private void executeDeleteUser(Command com)
com
- the command given by the administrator, containing the user data.private void executeMoveUser(Command com)
com
- the command given by the administrator, containing the user nickname and the message server id the user must be moved to.private void executeRemoveMS(Command com)
com
- the command given by the administrator, containing the message server id.private void executeShowAll()
private void executeShowGlobalStats()
private void executeUserList(Command com)
com
- the command given by the administrator, containing the id of the message server whose managed users must be shown.private void executeTestPresence(Command com)
com
- the command given by the administrator, containing the id of the message server whose presence must be checked.private void executeShutdown(Command com)
com
- the command given by the administrator, containing the id of the message server that must be shut down.private void executeBlockAssignation(Command com, boolean block)
com
- the command given by the administrator, containing the id of the message server whose assignations must be blocked.block
- true if the assignation must be blocked, false if the assignation must be unblocked.private void executeBackup(Command com)
com
- the command given by the administrator, containing the file name for the backup.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |