no.ntnu.vegare.visualizer.client.connection
Class ServerPollDaemon
java.lang.Object
no.ntnu.vegare.visualizer.client.connection.ServerPollDaemon
- All Implemented Interfaces:
- java.lang.Runnable
public class ServerPollDaemon
- extends java.lang.Object
- implements java.lang.Runnable
Runs in the background as a separate thread, constantly requesting new
log entries from the server. Feeds the database directly.
Uses automatic JSON parsing to generate LogEntry
objects
from the incoming text.
- Author:
- vegare
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerPollDaemon
public ServerPollDaemon(HttpsConnection conn,
AbstractLogDatabase db)
- Launch a new server poll daemon.
- Parameters:
conn
- HTTP connection instancedb
- Log database to feed with incidents
run
public void run()
- Specified by:
run
in interface java.lang.Runnable