org.hackystat.tickertape.server
Class Server

java.lang.Object
  extended by org.hackystat.tickertape.server.Server

public class Server
extends java.lang.Object

The main point of entry for this system. Reads in the tickertape.xml file, sets up the timer-based processes.

Author:
Philip Johnson

Field Summary
(package private)  java.util.List<java.util.Timer> timers
          The timers associated with the tickers.
 
Constructor Summary
Server(java.lang.String configFile)
          Instantiates a new Tickertape server.
 
Method Summary
static void main(java.lang.String[] args)
          Starts up this tickertape instance.
 void start()
          Starts up the Tickertape instances.
 void stop()
          Stops all timers that have been started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timers

java.util.List<java.util.Timer> timers
The timers associated with the tickers.

Constructor Detail

Server

public Server(java.lang.String configFile)
Instantiates a new Tickertape server. Uses either the passed configFile, or the default in ~/.hackystat/tickertape/tickertape.xml if null is passed.

Parameters:
configFile - The configFile to use, or null if the default should be used.
Method Detail

start

public void start()
           throws java.lang.Exception
Starts up the Tickertape instances.

Throws:
java.lang.Exception - If problems occur.

stop

public void stop()
Stops all timers that have been started.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Starts up this tickertape instance. Reads in the tickerlingua file and sets up timer tasks for each defined and enabled tickertape. Looks in ~/.hackystat/tickertape/tickerlingua.xml by default.

Parameters:
args - If provided, the location of the tickerlingua.xml file.
Throws:
java.lang.Exception - if problems occur.