org.pricingnexus.cococ
Class RawPriceProcessor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.pricingnexus.cococ.RawPriceProcessor
All Implemented Interfaces:
java.lang.Runnable

public class RawPriceProcessor
extends java.lang.Thread

This object collects raw prices (i.e. parsed and XML-transformed pages with pricing information) from a JMS queue and converts them into "database prices". That is it tries to find out which instrument in the database the price belongs to, inserts them in the database and sends out price updates. This update is related to the internal Security-ID which uniquely and very easy identifies each security throughout the whole system. If no matching instrument can be found a "Static Data Gathering" request is sent out that needs to be picked up by the appropriate processes so that the missing instrument can be - hopefully - added to the database. Prices concerning missing instruments are dropped without further notice. As there's probably a lot of traffic to handle one might need more than one thread consuming the prices. This can easily done by adjusting the RAW_PRICE_PROCESSOR_CONSUMER_THREADS parameter in the config-file. The given number of consumer threads are created within this object itself and will work in parallel. $Header$


Field Summary
 boolean shutdownProcess
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RawPriceProcessor(IniReader iniObject)
          The main constructer must be given a reference to the INI-object as it stores all necessary information we need to connect to Database, JMS service and so on
 
Method Summary
 void run()
          The main method
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

shutdownProcess

public boolean shutdownProcess
Constructor Detail

RawPriceProcessor

public RawPriceProcessor(IniReader iniObject)
The main constructer must be given a reference to the INI-object as it stores all necessary information we need to connect to Database, JMS service and so on
Method Detail

run

public void run()
The main method
Overrides:
run in class java.lang.Thread