|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QDHistory
The QDHistory
represents a history-view of the data.
In the history-view, all data events in specified time period are
important and are delivered to the consumers. Such contract also allows
QDHistory
to provide random access to available data values.
Method Summary | |
---|---|
boolean |
examineData(DataRecord record,
int cipher,
java.lang.String symbol,
long start_time,
long end_time,
DataVisitor visitor)
Examines available records for specified parameters via specified data visitor. |
boolean |
examineData(DataVisitor visitor)
Examines all stored data via specified data visitor. |
int |
getAvailableCount(DataRecord record,
int cipher,
java.lang.String symbol,
long start_time,
long end_time)
Returns the number of available records for specified parameters. |
long |
getMaxAvailableTime(DataRecord record,
int cipher,
java.lang.String symbol)
Returns maximal time of available records for specified parameters. |
long |
getMinAvailableTime(DataRecord record,
int cipher,
java.lang.String symbol)
Returns minimal time of available records for specified parameters. |
boolean |
isStoreEverything()
Returns status of "store everything" mode. |
void |
setStoreEverything(boolean store_everything)
Sets "store everything" mode (disabled by default). |
Methods inherited from interface com.devexperts.qd.QDCollector |
---|
createAgent, createAgent, createDistributor, createDistributor, getContract, getScheme, getSymbol, setErrorHandler |
Methods inherited from interface com.devexperts.qd.SubscriptionContainer |
---|
examineSubscription, getSubscriptionSize, isSubscribed |
Methods inherited from interface com.devexperts.qd.stats.QDStatsContainer |
---|
getStats |
Method Detail |
---|
boolean isStoreEverything()
setStoreEverything(boolean)
void setStoreEverything(boolean store_everything)
processData
stores everything into underlying storage regardless of subscription (by default only records that are
subscribed on are being stored). When subscription is removed records are not removed from storage
(by default they are). Note, that HistorySubscriptionFilter
is still honored (records are stored
only up to the limits established by the filter).
long getMinAvailableTime(DataRecord record, int cipher, java.lang.String symbol)
long getMaxAvailableTime(DataRecord record, int cipher, java.lang.String symbol)
int getAvailableCount(DataRecord record, int cipher, java.lang.String symbol, long start_time, long end_time)
[start_time, end_time]
inclusive
are counted in the specified order (from start_time to end_time).
Returns 0 if none are available.
boolean examineData(DataRecord record, int cipher, java.lang.String symbol, long start_time, long end_time, DataVisitor visitor)
[start_time, end_time]
inclusive
are examined in the specified order (from start_time to end_time).
Returns true
if not all available data from specified interval
were examined or false
if all available data were examined.
boolean examineData(DataVisitor visitor)
true
if some data was not examined or
false
if everything was examined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |