|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.trade.utils.OrderHistoryManager
org.marketcetera.client.utils.LiveOrderHistoryManager
org.marketcetera.client.utils.AutoOrderHistoryManager
public class AutoOrderHistoryManager
Provides a self-populating OrderHistoryManager implementation.
Instantiate this class with an origin date. The origin date establishes how far back to look for order history.
This class will receive new reports on its own - it is not necessary nor is it permitted to manually
add reports.
Note that there are significant performance and resource implications when using this class. Depending on historical order volume, this class may be required to process thousands or millions of reports. There are two ramifications of this:
It may take a significant amount of time to start this object as it must process historical
order history. Callers may choose to make this operation asynchronous. The object will report that it
is running when the processing is complete.
| Constructor Summary | |
|---|---|
AutoOrderHistoryManager(Date inReportHistoryOrigin)
Create a new AutoOrderHistoryManager instance. |
|
| Method Summary | |
|---|---|
void |
add(ReportBase inReport)
|
void |
receiveCancelReject(OrderCancelReject inReport)
Invoked to supply an order cancel reject report instance to the report listener. |
void |
receiveExecutionReport(ExecutionReport inReport)
Invoked to supply an execution report instance to the report listener. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.marketcetera.client.utils.LiveOrderHistoryManager |
|---|
getClient, getOpenOrders, getReportHistoryOrigin, isRunning, toString |
| Methods inherited from class org.marketcetera.trade.utils.OrderHistoryManager |
|---|
clear, clear, display, getLatestReportFor, getOrderChain, getOrderIds, getReportHistoryFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoOrderHistoryManager(Date inReportHistoryOrigin)
throws ClientInitException
inReportHistoryOrigin - a Date value indicating the point from which to gather order history or null
ClientInitException - if a connection to the Client cannot be made| Method Detail |
|---|
public void add(ReportBase inReport)
add in class OrderHistoryManagerpublic void receiveExecutionReport(ExecutionReport inReport)
ReportListener
receiveExecutionReport in interface ReportListenerinReport - The received execution report.public void receiveCancelReject(OrderCancelReject inReport)
ReportListener
receiveCancelReject in interface ReportListenerinReport - The received order cancel rejection report.public void start()
start in interface Lifecyclestart in class LiveOrderHistoryManagerpublic void stop()
stop in interface Lifecyclestop in class LiveOrderHistoryManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||