|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.timeregister.PunchDBServer
public class PunchDBServer
receives messages from a PunchDBClient and uses the given PunchDB
PunchDBClient,
PunchServerFrame| Field Summary | |
|---|---|
static SimpleHandshake |
HANDSHAKE
|
| Constructor Summary | |
|---|---|
PunchDBServer(PunchAdminDB db)
|
|
PunchDBServer(PunchAdminDB db,
Logger logger)
|
|
| Method Summary | |
|---|---|
void |
connectionLost(NetConnection con)
called when a connection caused an IOException during reading or writing; the connection may not have been closed at this point. |
Logger |
getLogger()
|
PunchDB |
getPunchDB()
|
Stopwatch |
getStopwatch()
retuns a stopwatch that captures the time for each handleMessage call |
void |
handleMessage(Object msg,
NetConnection con)
called when a message is received by the given NetConnection object |
void |
setLogger(Logger logger)
must not be null; empty logger is ok |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SimpleHandshake HANDSHAKE
| Constructor Detail |
|---|
public PunchDBServer(PunchAdminDB db)
public PunchDBServer(PunchAdminDB db,
Logger logger)
| Method Detail |
|---|
public PunchDB getPunchDB()
public Logger getLogger()
public Stopwatch getStopwatch()
public void setLogger(Logger logger)
public void handleMessage(Object msg,
NetConnection con)
NetConnectionHandler
handleMessage in interface NetConnectionHandlerpublic void connectionLost(NetConnection con)
NetConnectionHandler
connectionLost in interface NetConnectionHandler
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||