|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
luky.serverSimple.Handler
iCMS.masterd.MasterHandler
public class MasterHandler
The Master Handler handles iCMS clients
![]() |
![]() |
![]() |
![]() |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected MasterServer |
myParent
|
| Fields inherited from class luky.serverSimple.Handler |
|---|
in, out, parent, propsMan |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
MasterHandler(Hashtable userData,
Server parent,
BufferedReader in,
PrintWriter out,
PropertyManager propsMan,
String caller)
|
|
| Method Summary | |
|---|---|
int |
destroy(BufferedReader in,
PrintWriter out)
|
int |
handleUserCommand(BufferedReader in,
PrintWriter out,
String command)
Handles user commands VALID COMMANDS: HELLO, SHUTDOWN, CLOSE, CLEAN, HELP, --- buildt in commands HISTORY, --- returns the trap history TRAPON, TRAPOFF, --- switches trap passing on/off DESCR [token], --- returns the descripiton of this token INFO [token], --- returns the info fields of this token PROBE [token]/[Informational],< --- probes this info field AVAIL, --- lists all available tokens STATUS [token], --- returns the status of this token SUB [token], --- subs the client to this token ACTION [token], --- returns the actions possible on this token START, STOP, [token] --- starts or stops a token CONNECT, --- connects a client equal to STATUS ALL, HISTORY, SUB ALL, TRAP ON, --- DESCR [all tokens], INFO [all tokens], ACTION [all tokens] |
void |
myEventOccurred(MyEvent evt)
|
int |
stateChangeOccured(String token,
String newState)
|
int |
trapOccured(String trap)
|
boolean |
trapOn()
|
| Methods inherited from class luky.serverSimple.Handler |
|---|
decrypt, 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 |
|---|
protected MasterServer myParent
| Constructor Detail |
|---|
public MasterHandler(Hashtable userData,
Server parent,
BufferedReader in,
PrintWriter out,
PropertyManager propsMan,
String caller)
| Method Detail |
|---|
public int handleUserCommand(BufferedReader in,
PrintWriter out,
String command)
VALID COMMANDS:
HELLO, SHUTDOWN, CLOSE, CLEAN, HELP,
--- buildt in commands
HISTORY,
--- returns the trap history
TRAPON, TRAPOFF,
--- switches trap passing on/off
DESCR [token],
--- returns the descripiton of this token
INFO [token],
--- returns the info fields of this token
PROBE [token]/[Informational],<
--- probes this info field
AVAIL,
--- lists all available tokens
STATUS [token],
--- returns the status of this token
SUB [token],
--- subs the client to this token
ACTION [token],
--- returns the actions possible on this token
START, STOP, [token]
--- starts or stops a token
CONNECT,
--- connects a client equal to STATUS ALL, HISTORY, SUB ALL, TRAP ON,
--- DESCR [all tokens], INFO [all tokens], ACTION [all tokens]
handleUserCommand in class Handlerpublic boolean trapOn()
public int stateChangeOccured(String token,
String newState)
public int trapOccured(String trap)
public void myEventOccurred(MyEvent evt)
public int destroy(BufferedReader in,
PrintWriter out)
destroy in class Handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||