Examples of listJobs()


Examples of gri.tasks.managers.JobManager.listJobs()

    JobManagerEntry entry;
    for (int i=0; i<entries.size(); i++) {
      entry = (JobManagerEntry)entries.get(i);
      JobManager jobManager = entry.getJobManager();

      JobInfo [] jobInfo = jobManager.listJobs();
      for (int j=0; j<jobInfo.length; j++) {
        JobEntry job = new JobEntry(
            jobInfo[j].getTaskId(),
            jobInfo[j].getTaskId(),
            jobManager);
View Full Code Here

Examples of gri.tasks.managers.JobManager.listJobs()

        entry = (JobManagerEntry)entries.get(i);
        JobManager jobManager = entry.getJobManager();

        System.out.println(entry.getDisplayName());
        System.out.println("-------------------------");
        JobInfo [] jobs = jobManager.listJobs();
        for (int j=0; j<jobs.length; j++) {
          System.out.println(jobs[j].getJobId() + " " + jobs[j].getStatus());

        }
        System.out.println();
View Full Code Here

Examples of org.platformlayer.PlatformLayerClient.listJobs()

public class AutoCompleteJobId extends PlatformLayerSimpleAutoCompleter {
  @Override
  public List<String> doComplete(CliContext context, String prefix) throws Exception {
    PlatformLayerClient client = getPlatformLayerClient(context);
    List<String> jobs = Lists.newArrayList();
    for (JobData jobData : client.listJobs().getJobs()) {
      jobs.add(jobData.getJobId());
    }
    addSuffix(jobs, " ");
    return jobs;
  }
View Full Code Here

Examples of org.platformlayer.PlatformLayerClient.listJobs()

  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    JobDataList jobs;
    if (path == null) {
      jobs = client.listJobs();
    } else {
      PlatformLayerKey resolved = path.resolve(getContext());
      jobs = client.listJobs(resolved);
    }
    // if (path != null) {
View Full Code Here

Examples of org.platformlayer.PlatformLayerClient.listJobs()

    JobDataList jobs;
    if (path == null) {
      jobs = client.listJobs();
    } else {
      PlatformLayerKey resolved = path.resolve(getContext());
      jobs = client.listJobs(resolved);
    }
    // if (path != null) {
    // PlatformLayerKey resolved = path.resolve(getContext());
    //
    // JobDataList matches = JobDataList.create();
View Full Code Here

Examples of org.platformlayer.TypedPlatformLayerClient.listJobs()

        throw new OpsException("Timeout waiting for job completion");
      }

      // TODO: We really need a "get job status" function
      JobData found = null;
      for (JobData candidate : client.listJobs().getJobs()) {
        if (jobKey.equals(candidate.getJobKey())) {
          found = candidate;
        }
      }
View Full Code Here

Examples of org.springframework.batch.admin.service.JobService.listJobs()

    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);
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.