org.marketcetera.orderloader
Interface OrderProcessor

All Known Implementing Classes:
ServerOrderProcessor

public interface OrderProcessor

Processes orders parsed by the OrderParser. The processor keeps track of orders that could not be sent to the server. Implementations may send the orders to the server or do something else with them. For example, a processor might inject the orders into a data flow or simply log them.

Since:
1.0.0
Version:
$Id: OrderProcessor.java 16154 2012-07-14 16:34:05Z colin $
Author:
anshul@marketcetera.com

Method Summary
 void done()
          Invoked to release resources when the system is done processing orders.
 void processOrder(Order inOrder, int inOrderIndex)
          Processes the supplied order.
 

Method Detail

processOrder

void processOrder(Order inOrder,
                  int inOrderIndex)
                  throws Exception
Processes the supplied order.

Parameters:
inOrder - the order to be sent.
inOrderIndex - the index number of this order. When orders are fed from a file, this will be the line number at which the order appears in the file.
Throws:
Exception - if there was an error processing the order

done

void done()
Invoked to release resources when the system is done processing orders.



Copyright © 2012. All Rights Reserved.