|
||||||||||
| 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
public class LiveOrderHistoryManager
Provides a historically-aware OrderHistoryManager implementation.
Instantiate this class with an origin date. The origin date establishes how far back to look for order history.
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 | |
|---|---|
LiveOrderHistoryManager(Date inReportHistoryOrigin)
Create a new LiveOrderHistoryManager instance. |
|
| Method Summary | |
|---|---|
protected Client |
getClient()
Get the client value. |
Map<OrderID,ExecutionReport> |
getOpenOrders()
Gets the open orders. |
Date |
getReportHistoryOrigin()
Gets the report history origin date used by this order history manager. |
boolean |
isRunning()
|
void |
start()
|
void |
stop()
|
String |
toString()
|
| Methods inherited from class org.marketcetera.trade.utils.OrderHistoryManager |
|---|
add, 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 LiveOrderHistoryManager(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 Map<OrderID,ExecutionReport> getOpenOrders()
The collection returned by this operation will reflect changes to the underlying order history.
The LiveOrderHistoryManager object must be started before this operation
may be successfully invoked.
getOpenOrders in class OrderHistoryManagerMap<OrderID,ExecutionReport> value
IllegalStateException - if the object has not startedpublic boolean isRunning()
isRunning in interface Lifecyclepublic void start()
start in interface Lifecyclepublic void stop()
stop in interface Lifecyclepublic Date getReportHistoryOrigin()
Date valuepublic String toString()
toString in class OrderHistoryManagerprotected Client getClient()
Client value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||