Package com.quantcomponents.core.model

Examples of com.quantcomponents.core.model.ITaskMonitor


    dialog.setCancelable(true);
    dialog.run(true, true, new IRunnableWithProgress() {
      @Override
      public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        try {
          ITaskMonitor taskMonitor = new TaskMonitorAdapter(monitor, "Retrieving historical data...");
          marketDataManager.fillHistoricalData(stockDatabase, startDateTime, endDateTime, taskMonitor);
        } catch (Exception e) {
          throw new InvocationTargetException(e);
        }
      }});
View Full Code Here


    final IRealTimeMarketDataManager realTimeMarketDataManager = (IRealTimeMarketDataManager) marketDataManager;
    dialog.run(true, true, new IRunnableWithProgress() {
      @Override
      public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        try {
          ITaskMonitor taskMonitor = new TaskMonitorAdapter(monitor, "Starting auto-update...");
          realTimeMarketDataManager.startRealtimeUpdate(stockDatabase, true, taskMonitor);
        } catch (Exception e) {
          throw new InvocationTargetException(e);
        }
      }});
View Full Code Here

  public void done(ServiceHandle<ITaskMonitorHost> taskMonitorHandle) {
    retrieveTaskMonitor(taskMonitorHandle).done();
  }
 
  private ITaskMonitor retrieveTaskMonitor(ServiceHandle<ITaskMonitorHost> taskMonitorHandle) {
    ITaskMonitor taskMonitor = allTaskMonitors.get(taskMonitorHandle);
    if (taskMonitor == null) {
      throw new IllegalArgumentException("Task monitor for handle: " + taskMonitorHandle + " not found");
    }
    return taskMonitor;
  }
View Full Code Here

TOP

Related Classes of com.quantcomponents.core.model.ITaskMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.