Examples of JobService


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

Examples of ca.eandb.jdcp.remote.JobService

  /* (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

Examples of ca.eandb.jdcp.remote.JobService

  /* (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

Examples of ca.eandb.jdcp.remote.JobService

  /* (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

Examples of ca.eandb.jdcp.remote.JobService

  /* (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

Examples of ca.eandb.jdcp.remote.JobService

   * @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

Examples of ca.eandb.jdcp.remote.JobService

   */
  @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

Examples of ca.eandb.jdcp.remote.JobService

   * @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

Examples of com.github.api.v2.services.JobService

   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    JobService service = factory.createJobService();
    List<Job> jobs = service.searchJobs("python", "new york");
    for (Job job : jobs) {
      printResult(job);
    }
    Job job = service.getJob("82eeae34-65ff-11e0-99be-a34ef36756d3");
    printResult(job);
  }
View Full Code Here

Examples of org.springframework.batch.admin.service.JobService

    server.registerMBean(EasyMock.anyObject(), EasyMock.isA(ObjectName.class));
    EasyMock.expectLastCall().andReturn(new ObjectInstance(new ObjectName(exporter.getBeanKeyForJobExecution("foo")), SimpleJobExecutionMetrics.class.getName()));
    server.registerMBean(EasyMock.anyObject(), EasyMock.isA(ObjectName.class));
    EasyMock.expectLastCall().andReturn(new ObjectInstance(new ObjectName(exporter.getBeanKeyForStepExecution("foo", "step")), SimpleStepExecutionMetrics.class.getName()));
   
    JobService jobService = EasyMock.createNiceMock(JobService.class);
    exporter.setJobService(jobService);
    jobService.listJobs(0, Integer.MAX_VALUE);
    EasyMock.expectLastCall().andReturn(Arrays.asList("foo")).anyTimes();
    jobService.listJobExecutionsForJob("foo", 0, 1);
    EasyMock.expectLastCall().andReturn(Arrays.asList(MetaDataInstanceFactory.createJobExecutionWithStepExecutions(123L, Arrays.asList("step")))).anyTimes();

    EasyMock.replay(server, jobService);
   
    exporter.doStart();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.