|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
messageServerP.HumanListener
public class HumanListener
The human listener, a thread that waits the administration commands from the interface 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
The current human-user interface. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
HumanListener()
|
Method Summary | |
---|---|
private void |
executeBackup(Command com)
Executes a complete backup in the file given as argument, or in the main backupper if the argument was not given. |
private void |
executeChangeInterfaceToGui()
NOT YET IMPLEMENTED: DOES NOTHING! |
private void |
executePrintLoadStatistics()
Prints the load statistics. |
private void |
executePrintUserStatistics()
Prints the user statistics. |
protected static boolean |
executeShutdown()
Shuts down the Message server if no users are assigned or returns false if there are assigned users. |
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
protected static boolean executeShutdown()
private void executePrintUserStatistics()
private void executeChangeInterfaceToGui()
private void executePrintLoadStatistics()
private void executeBackup(Command com)
com
- the command obtained by the human interface (contains the backup filename)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |