congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JobList.getJobs
Code IndexAdd Tabnine to your IDE (free)

How to use
getJobs
method
in
com.emc.ecs.sync.rest.JobList

Best Java code snippets using com.emc.ecs.sync.rest.JobList.getJobs (Showing top 4 results out of 315)

origin: EMCECS/ecs-sync

public JobList getAllJobs() {
  JobList jobList = new JobList();
  for (Map.Entry<Integer, EcsSync> entry : syncCache.entrySet()) {
    jobList.getJobs().add(new JobInfo(entry.getKey(), getJobStatus(entry.getValue()),
        configCache.get(entry.getKey()), getProgress(entry.getKey())));
  }
  return jobList;
}
origin: EMCECS/ecs-sync

private void listJobs() {
  Client client = new Client();
  JobList list = client.resource(endpoint + "/job").accept("application/xml").get(JobList.class);
  System.out.printf("JobID  Status\n");
  System.out.printf("-----------------------\n");
  for(JobInfo ji : list.getJobs()) {
    System.out.printf("%5d  %s\n", ji.getJobId(), ji.getStatus());
  }
}
origin: EMCECS/ecs-sync

@After
public void stopRestServer() throws InterruptedException {
  if (restServer != null) restServer.stop(0);
  restServer = null;
  // wait for all jobs to stop to prevent leakage into other tests
  for (JobInfo jobInfo : SyncJobService.getInstance().getAllJobs().getJobs()) {
    while (!SyncJobService.getInstance().getJobControl(jobInfo.getJobId()).getStatus().isFinalState())
      Thread.sleep(500);
    SyncJobService.getInstance().deleteJob(jobInfo.getJobId(), false);
  }
}
origin: EMCECS/ecs-sync

Assert.assertEquals(3, jobList.getJobs().size());
Assert.assertEquals(new Integer(jobId1), jobList.getJobs().get(0).getJobId());
Assert.assertEquals(new Integer(jobId2), jobList.getJobs().get(1).getJobId());
Assert.assertEquals(new Integer(jobId3), jobList.getJobs().get(2).getJobId());
com.emc.ecs.sync.restJobListgetJobs

Popular methods of JobList

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now