Package org.eclipse.ecf.core.jobs

Examples of org.eclipse.ecf.core.jobs.JobsExecutor


      remoteServiceListeners.add(listener);
    }
  }

  public IFuture asyncGetRemoteServiceReferences(final ID[] idFilter, final String clazz, final String filter) {
    IExecutor executor = new JobsExecutor("asyncGetRemoteServiceReferences"); //$NON-NLS-1$
    return executor.execute(new IProgressRunnable() {
      public Object run(IProgressMonitor monitor) throws Exception {
        return getRemoteServiceReferences(idFilter, clazz, filter);
      }
    }, null);
  }
View Full Code Here


      }
    }, null);
  }

  public IFuture asyncGetRemoteServiceReferences(final ID target, final String clazz, final String filter) {
    IExecutor executor = new JobsExecutor("asyncGetRemoteServiceReferences"); //$NON-NLS-1$
    return executor.execute(new IProgressRunnable() {
      public Object run(IProgressMonitor monitor) throws Exception {
        return getRemoteServiceReferences(target, clazz, filter);
      }
    }, null);
  }
View Full Code Here

  /**
   * @since 5.0
   */
  public IFuture asyncGetRemoteServiceReferences(final ID target, final ID[] idFilter, final String clazz, final String filter) {
    IExecutor executor = new JobsExecutor("asyncGetRemoteServiceReferences"); //$NON-NLS-1$
    return executor.execute(new IProgressRunnable() {
      public Object run(IProgressMonitor monitor) throws Exception {
        return getRemoteServiceReferences(target, idFilter, clazz, filter);
      }
    }, null);
  }
View Full Code Here

   * @since 8.2
   */
  protected IExecutor getIFutureExecutor(IRemoteCall call) {
    synchronized (this) {
      if (iFutureExecutor == null)
        iFutureExecutor = new JobsExecutor("RSJobs[rsID=" + getRemoteServiceID() + "]"); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return iFutureExecutor;
  }
View Full Code Here

  /**
   * @since 3.0
   */
  public IFuture asyncGetRemoteServiceReferences(final ID[] idFilter, final String clazz, final String filter) {
    IExecutor executor = new JobsExecutor("asyncGetRemoteServiceReferences"); //$NON-NLS-1$
    return executor.execute(new IProgressRunnable() {
      public Object run(IProgressMonitor monitor) throws Exception {
        return getRemoteServiceReferences(idFilter, clazz, filter);
      }
    }, null);
  }
View Full Code Here

  /**
   * @since 3.4
   */
  public IFuture asyncGetRemoteServiceReferences(final ID target, final ID[] idFilter, final String clazz, final String filter) {
    IExecutor executor = new JobsExecutor("asyncGetRemoteServiceReferences"); //$NON-NLS-1$
    return executor.execute(new IProgressRunnable() {
      public Object run(IProgressMonitor monitor) throws Exception {
        return getRemoteServiceReferences(target, idFilter, clazz, filter);
      }
    }, null);
  }
View Full Code Here

  /**
   * @since 3.0
   */
  public IFuture asyncGetRemoteServiceReferences(final ID target, final String clazz, final String filter) {
    IExecutor executor = new JobsExecutor("asyncGetRemoteServiceReferences"); //$NON-NLS-1$
    return executor.execute(new IProgressRunnable() {
      public Object run(IProgressMonitor monitor) throws Exception {
        return getRemoteServiceReferences(target, clazz, filter);
      }
    }, null);
  }
View Full Code Here

   * @since 3.4
   */
  protected IExecutor createRequestExecutor(final Request request) {
    IExecutor executor = null;
    if (DEFAULT_EXECUTOR_TYPE.equals("jobs")) { //$NON-NLS-1$
      executor = new JobsExecutor("Remote Request Handler") { //$NON-NLS-1$
        protected String createJobName(String executorName, int jobCounter, IProgressRunnable runnable) {
          return executorName + " - " + request.getCall().getMethod() + ":" + request.getRequestId(); //$NON-NLS-1$ //$NON-NLS-2$
        }
      };
    } else if (DEFAULT_EXECUTOR_TYPE.equals("immediate")) { //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.jobs.JobsExecutor

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.