public interface IReportService
| Modifier and Type | Method and Description |
|---|---|
List<IReportPosition> |
getClosedPositions(long from,
long to)
Returns a list of closed positions for specified:
|
List<IReportPosition> |
getOpenPositions()
Returns a list of all open positions
|
void |
readClosedPositions(long from,
long to,
ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
Loads closed positions from the server in the background.
|
void |
readOpenPositions(ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
Loads all open positions from the server in the background.
|
List<IReportPosition> getOpenPositions() throws JFException
JFException - in case of any system errorvoid readOpenPositions(ILoadingReportPositionListener reportPositionListener, LoadingProgressListener loadingProgress) throws JFException
ILoadingReportPositionListener. LoadingProgressListener is used to receive feedback about loading progress,
to cancel loading and its method LoadingProgressListener.loadingFinished(boolean, long, long, long) is called when loading
is finished or as a result of error. This method can be used for open positions loading without blocking strategy executionreportPositionListener - receives data about requested open positionsloadingProgress - used to control loading progressJFException - in case of any system errorList<IReportPosition> getClosedPositions(long from, long to) throws JFException
from - start of the time interval for which closed positions should be loadedto - end time of the time interval for which closed positions should be loadedJFException - in case of any system errorvoid readClosedPositions(long from,
long to,
ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
throws JFException
ILoadingReportPositionListener.
LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method.
LoadingProgressListener.loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error.
This method can be used for positions loading without blocking strategy executionfrom - start of the time interval for which closed positions should be loadedto - end time of the time interval for which closed positions should be loadedreportPositionListener - receives data about requested closed positionsloadingProgress - used to control loading progressJFException - in case of any system errorCopyright © 2016. All rights reserved.