|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread luky.serverSimple.Server iCMS.masterd.MasterServer
public class MasterServer
The Master Server handles iCMS clients
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class luky.serverSimple.Server |
---|
listenerList, myHandlers, propsMan, userData, version |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
MasterServer(boolean log,
int logLevel,
PropertyManager props,
boolean quiet)
|
Method Summary | |
---|---|
SortVector |
getMonitoredItemsTokens()
returns the monitored items tokens |
String |
getStatus(String token)
returns the status of this token |
Vector |
getTrapHistory()
returns the last 100 (defineable) traps received by the server |
protected Handler |
makeNewHandler(Hashtable userData,
BufferedReader in,
PrintWriter out,
PropertyManager propsMan,
String caller)
creates a new handler to talk to a client |
void |
myEventOccurred(MyEvent evt)
triggered by the clients on traps or state changes |
void |
requestAllStatuses()
|
void |
runCommand(String command,
String token,
PrintWriter out)
runs command on the appropriate client can only handle one request at the time, possible perfomance problem |
Methods inherited from class luky.serverSimple.Server |
---|
addMyEventListener, childEventOccurred, fireMyEvent, getPropsMan, print, println, removeHandler, removeMyEventListener, run, setQuit, userInit |
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 |
Constructor Detail |
---|
public MasterServer(boolean log, int logLevel, PropertyManager props, boolean quiet)
Method Detail |
---|
public void requestAllStatuses()
public void runCommand(String command, String token, PrintWriter out)
public SortVector getMonitoredItemsTokens()
public String getStatus(String token)
public Vector getTrapHistory()
public void myEventOccurred(MyEvent evt)
myEventOccurred
in interface MyEventListener
myEventOccurred
in class Server
protected Handler makeNewHandler(Hashtable userData, BufferedReader in, PrintWriter out, PropertyManager propsMan, String caller)
makeNewHandler
in class Server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |