no.ntnu.vegare.visualizer.client.connection
Class ServerPollDaemon

java.lang.Object
  extended by 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

Constructor Summary
ServerPollDaemon(HttpsConnection conn, AbstractLogDatabase db)
          Launch a new server poll daemon.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerPollDaemon

public ServerPollDaemon(HttpsConnection conn,
                        AbstractLogDatabase db)
Launch a new server poll daemon.

Parameters:
conn - HTTP connection instance
db - Log database to feed with incidents
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable