org.marketcetera.orderloader.system
Class SystemProcessor

java.lang.Object
  extended by org.marketcetera.orderloader.RowProcessor
      extended by org.marketcetera.orderloader.system.SystemProcessor

public class SystemProcessor
extends RowProcessor

A processor that parses rows into system order messages.

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

Field Summary
static String FIELD_ACCOUNT
          The account field header name.
static String FIELD_ORDER_CAPACITY
          The Order Capacity field header name.
static String FIELD_ORDER_TYPE
          The Order Type field header name.
static String FIELD_POSITION_EFFECT
          The Position Effect field header name.
static String FIELD_PRICE
          The Price field header name.
static String FIELD_QUANTITY
          The Quantity field header name.
static String FIELD_SIDE
          The Side field header name.
static String FIELD_TIME_IN_FORCE
          The Time In Force field header name.
 
Constructor Summary
SystemProcessor(OrderProcessor inProcessor, BrokerID inBrokerID)
          Creates an instance.
 
Method Summary
protected  Order parseOrder(String[] inRow)
          Parses the supplied row and creates an order instance from it.
protected  void setHeaders(String[] inHeaders)
          Implemented by subclasses to initialize themselves with the supplied headers.
 
Methods inherited from class org.marketcetera.orderloader.RowProcessor
geBrokerID, getFailedOrders, getNumFailed, getNumSuccess, getTotal, initialize, processOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_ACCOUNT

public static final String FIELD_ACCOUNT
The account field header name.

See Also:
Constant Field Values

FIELD_ORDER_CAPACITY

public static final String FIELD_ORDER_CAPACITY
The Order Capacity field header name.

See Also:
Constant Field Values

FIELD_ORDER_TYPE

public static final String FIELD_ORDER_TYPE
The Order Type field header name.

See Also:
Constant Field Values

FIELD_POSITION_EFFECT

public static final String FIELD_POSITION_EFFECT
The Position Effect field header name.

See Also:
Constant Field Values

FIELD_PRICE

public static final String FIELD_PRICE
The Price field header name.

See Also:
Constant Field Values

FIELD_QUANTITY

public static final String FIELD_QUANTITY
The Quantity field header name.

See Also:
Constant Field Values

FIELD_SIDE

public static final String FIELD_SIDE
The Side field header name.

See Also:
Constant Field Values

FIELD_TIME_IN_FORCE

public static final String FIELD_TIME_IN_FORCE
The Time In Force field header name.

See Also:
Constant Field Values
Constructor Detail

SystemProcessor

public SystemProcessor(OrderProcessor inProcessor,
                       BrokerID inBrokerID)
Creates an instance.

Parameters:
inProcessor - the order processor.
inBrokerID - the broker ID.
Method Detail

setHeaders

protected void setHeaders(String[] inHeaders)
                   throws OrderParsingException
Description copied from class: RowProcessor
Implemented by subclasses to initialize themselves with the supplied headers.

Specified by:
setHeaders in class RowProcessor
Parameters:
inHeaders - the headers specified in the csv file.
Throws:
OrderParsingException - if there were errors with the supplied headers.

parseOrder

protected Order parseOrder(String[] inRow)
                    throws OrderParsingException
Description copied from class: RowProcessor
Parses the supplied row and creates an order instance from it.

Specified by:
parseOrder in class RowProcessor
Parameters:
inRow - the supplied row.
Returns:
the order created from the supplied row.
Throws:
OrderParsingException - if there were errors parsing the


Copyright © 2012. All Rights Reserved.