Example #1
0
  /*
   * (non-Javadoc)
   *
   * @see
   * com.intel.stl.ui.common.performance.SimpleDataProvider#deregisterTask
   * (com.intel.stl.ui.publisher.Task, com.intel.stl.ui.publisher.ICallback)
   */
  @Override
  protected void deregisterTask(
      Task<List<FocusPortsRspBean>> task, ICallback<List<FocusPortsRspBean>> callback) {

    FocusPortCounterSubscriber focusPortCounterSubscriber =
        (FocusPortCounterSubscriber) scheduler.getSubscriber(SubscriberType.FOCUS_PORTS);
    focusPortCounterSubscriber.deregisterFocusPorts(task, callback);
  }
Example #2
0
  /*
   * (non-Javadoc)
   *
   * @see
   * com.intel.stl.ui.common.performance.SimpleDataProvider#registerTask(int,
   * com.intel.stl.ui.publisher.ICallback)
   */
  @Override
  protected Task<List<FocusPortsRspBean>> registerTask(
      GroupSource sourceName, ICallback<List<FocusPortsRspBean>> callback) {

    FocusPortCounterSubscriber focusPortCounterSubscriber =
        (FocusPortCounterSubscriber) scheduler.getSubscriber(SubscriberType.FOCUS_PORTS);
    return focusPortCounterSubscriber.registerFocusPorts(
        sourceName.getGroup(), selection, range, callback);
  }