com.shimari.fxbot
Class TickerHandler

java.lang.Object
  extended bycom.shimari.fxbot.TickerHandler
All Implemented Interfaces:
Component, Handler, TickerListener

public class TickerHandler
extends java.lang.Object
implements Handler, TickerListener

Handle all requests associated with viewing a ticker; also monitor the ticker periodically and broadcast interesing updates to the channel.


Constructor Summary
TickerHandler(Config config)
           
 
Method Summary
 void addSymbolWatch(java.lang.String symbol)
           
 void addUIDWatch(java.lang.Integer uid)
           
 boolean handle(Message m)
          Handle a message.
 void init(Registry components)
           
 void removeSymbolWatch(java.lang.String symbol)
           
 void removeUIDWatch(java.lang.Integer uid)
           
 void tick(FXTP_Tick tick)
           
 java.util.Iterator watches()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TickerHandler

public TickerHandler(Config config)
              throws ConfigException
Method Detail

init

public void init(Registry components)
          throws ConfigException
Specified by:
init in interface Component
Throws:
ConfigException

handle

public boolean handle(Message m)
Description copied from interface: Handler
Handle a message. If further processing should be done return false; if the message has been fully processed return true.

Specified by:
handle in interface Handler

addUIDWatch

public void addUIDWatch(java.lang.Integer uid)

removeUIDWatch

public void removeUIDWatch(java.lang.Integer uid)

addSymbolWatch

public void addSymbolWatch(java.lang.String symbol)

removeSymbolWatch

public void removeSymbolWatch(java.lang.String symbol)

tick

public void tick(FXTP_Tick tick)
Specified by:
tick in interface TickerListener

watches

public java.util.Iterator watches()