Package ca.eandb.jdcp.remote

Examples of ca.eandb.jdcp.remote.JobService


   * @see ca.eandb.jdcp.remote.JobService#submitJob(ca.eandb.util.rmi.Serialized, java.lang.String)
   */
  public UUID submitJob(Serialized<ParallelizableJob> job, String description)
      throws SecurityException, ClassNotFoundException,
      JobExecutionException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        return service.submitJob(job, description);
      } catch (RemoteException e) {
        logger.error("Lost connection", e);
      }
    }
  }
View Full Code Here


  /* (non-Javadoc)
   * @see ca.eandb.jdcp.remote.JobService#submitTaskResults(java.util.UUID, int, ca.eandb.util.rmi.Serialized)
   */
  public void submitTaskResults(UUID jobId, int taskId,
      Serialized<Object> results) throws SecurityException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        service.submitTaskResults(jobId, taskId, results);
        return;
      } catch (RemoteException e) {
        logger.error("Lost connection", e);
      }
    }
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jdcp.remote.JobService#getFinishedTasks(java.util.UUID[], int[])
   */
  public BitSet getFinishedTasks(UUID[] jobIds, int[] taskIds)
      throws IllegalArgumentException, SecurityException, RemoteException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        return service.getFinishedTasks(jobIds, taskIds);
      } catch (NoSuchObjectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectIOException e) {
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jdcp.remote.JobService#registerTaskService(java.lang.String, ca.eandb.jdcp.remote.TaskService)
   */
  public void registerTaskService(String name, TaskService taskService)
      throws SecurityException, RemoteException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        service.registerTaskService(name, taskService);
        return;
      } catch (NoSuchObjectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectException e) {
        logger.error("Lost connection", e);
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jdcp.remote.JobService#unregisterTaskService(java.lang.String)
   */
  public void unregisterTaskService(String name)
      throws IllegalArgumentException, SecurityException, RemoteException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        service.unregisterTaskService(name);
        return;
      } catch (NoSuchObjectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectException e) {
        logger.error("Lost connection", e);
View Full Code Here

   * @see ca.eandb.jdcp.remote.JobService#waitForJobStatusChange(long, long)
   */
  @Override
  public JobStatus waitForJobStatusChange(long lastEventId, long timeoutMillis)
      throws SecurityException, RemoteException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        return service.waitForJobStatusChange(lastEventId, timeoutMillis);
      } catch (NoSuchObjectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectIOException e) {
View Full Code Here

   */
  @Override
  public JobStatus waitForJobStatusChange(UUID jobId, long lastEventId,
      long timeoutMillis) throws IllegalArgumentException,
      SecurityException, RemoteException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        return service.waitForJobStatusChange(jobId, lastEventId, timeoutMillis);
      } catch (NoSuchObjectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectIOException e) {
View Full Code Here

   * @see ca.eandb.jdcp.remote.JobService#getJobStatus(java.util.UUID)
   */
  @Override
  public JobStatus getJobStatus(UUID jobId) throws IllegalArgumentException,
      SecurityException, RemoteException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        return service.getJobStatus(jobId);
      } catch (NoSuchObjectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectException e) {
        logger.error("Lost connection", e);
      } catch (ConnectIOException e) {
View Full Code Here

TOP

Related Classes of ca.eandb.jdcp.remote.JobService

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.