|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kom.gateway.Gateway
Gateway is a class containing all state information for connected clients. This class should be preloaded.
Field Summary | |
(package private) ClientObservable |
clientObservable
|
(package private) static ServerConfig |
config
|
java.lang.String |
fullServletBase
|
GetMail |
mailGetter
|
(package private) NumberObservable |
maxClientObservable
|
NewsNotifier |
newsNotifier
|
protected boolean |
sleeping
|
protected boolean |
stopped
|
protected java.lang.Thread |
thread
|
Constructor Summary | |
Gateway()
Default constructor |
Method Summary | |
boolean |
addClient(java.lang.String cursor,
Environment env)
Adds a new client to the clientObservable list |
void |
addClientObserver(java.util.Observer observer)
Adds an observer |
void |
addMaxClientObserver(java.util.Observer observer)
Adds an observer to maxClientObservable |
void |
changeClient(java.lang.String client)
Client data change notification |
void |
deleteClient(java.lang.String cursor)
Deletes a client with the specified cursor |
Environment |
getClient(java.lang.String cursor)
Gets a client with specified cursor |
ClientObservable |
getClientObservable()
Gets clientObservable |
java.util.Hashtable |
getClients()
Gets a copy of the client table |
NumberObservable |
getMaxClientObservable()
Gets maxClientObservable |
void |
logout(java.lang.String cursor)
Removes client on logout |
static void |
printStackTrace(java.lang.Throwable x,
java.lang.String debugmessage)
|
void |
run()
Implements Runnable. |
void |
setConfig(HTTPConfig conf)
Implements Preload |
void |
stop()
|
void |
update(java.util.Observable obs,
java.lang.Object obj)
Implements Observer |
Methods inherited from class java.lang.Object |
|
Field Detail |
static ServerConfig config
protected java.lang.Thread thread
protected boolean stopped
protected boolean sleeping
ClientObservable clientObservable
NumberObservable maxClientObservable
public java.lang.String fullServletBase
public GetMail mailGetter
public NewsNotifier newsNotifier
Constructor Detail |
public Gateway()
Method Detail |
public void stop()
public void addClientObserver(java.util.Observer observer)
observer
- The Observer to be addedpublic void addMaxClientObserver(java.util.Observer observer)
observer
- The Observer to be addedpublic ClientObservable getClientObservable()
public NumberObservable getMaxClientObservable()
public boolean addClient(java.lang.String cursor, Environment env)
public void changeClient(java.lang.String client)
client
- The client (cursor) which has changedpublic java.util.Hashtable getClients()
public Environment getClient(java.lang.String cursor)
public void deleteClient(java.lang.String cursor)
public void setConfig(HTTPConfig conf)
public void logout(java.lang.String cursor)
cursor
- Client idpublic void run()
public void update(java.util.Observable obs, java.lang.Object obj)
obs
- Observerobj
- Objectpublic static void printStackTrace(java.lang.Throwable x, java.lang.String debugmessage)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |