|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.orderloader.OrderLoader
public class OrderLoader
An order loader that reads orders from a supplied csv input file and processes them.
| Field Summary | |
|---|---|
static String |
MODE_SYSTEM
|
| Constructor Summary | |
|---|---|
OrderLoader(String inMode,
BrokerID inBrokerID,
OrderProcessor inOrderProcessor,
File inFile)
Creates a new instance that processes orders from a csv input file. |
|
| Method Summary | |
|---|---|
List<FailedOrderInfo> |
getFailedOrders()
Details on failed orders. |
int |
getNumBlankLines()
Number of blank lines. |
int |
getNumComments()
Number of lines with comments. |
int |
getNumFailed()
Number of orders that failed to process. |
int |
getNumLines()
Number of lines of input processed. |
int |
getNumSuccess()
Number of orders successfully processed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MODE_SYSTEM
| Constructor Detail |
|---|
public OrderLoader(String inMode,
BrokerID inBrokerID,
OrderProcessor inOrderProcessor,
File inFile)
throws OrderParsingException,
IOException
inMode - the mode. Can be sys or a FIX version value.
If null, defaults to sys.inBrokerID - the broker's ID to which the orders should be sent.
Can be null, if the mode is sys.inOrderProcessor - the processor that should process all the orders
parsed out by the order loader. Cannot be null.inFile - the csv file that contains orders that need to be parsed.
Cannot be null.
OrderParsingException - if there were errors
IOException - if there were errors reading data from the
supplied file.| Method Detail |
|---|
public int getNumLines()
public int getNumBlankLines()
public int getNumComments()
public int getNumSuccess()
public int getNumFailed()
public List<FailedOrderInfo> getFailedOrders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||