public class OrderLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MODE_SYSTEM |
| Constructor and Description |
|---|
OrderLoader(String inMode,
BrokerID inBrokerID,
OrderProcessor inOrderProcessor,
File inFile)
Creates a new instance that processes orders from a csv input file.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String MODE_SYSTEM
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 errorsIOException - if there were errors reading data from the
supplied file.public int getNumLines()
public int getNumBlankLines()
public int getNumComments()
public int getNumSuccess()
public int getNumFailed()
public List<FailedOrderInfo> getFailedOrders()
Copyright © 2014. All Rights Reserved.