Class JobsClient

java.lang.Object
org.apache.sling.testing.clients.AbstractSlingClient
org.apache.sling.testing.clients.SlingClient
com.adobe.cq.testing.client.CQClient
com.adobe.cq.testing.client.JobsClient
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.http.client.HttpClient

public class JobsClient extends CQClient
  • Field Details

  • Constructor Details

    • JobsClient

      public JobsClient(org.apache.http.impl.client.CloseableHttpClient http, org.apache.sling.testing.clients.SlingClientConfig config) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
    • JobsClient

      public JobsClient(URI serverUrl, String user, String password) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
  • Method Details

    • getJobsStatistics

      public JobsStatistics getJobsStatistics() throws org.apache.sling.testing.clients.ClientException
      Provides a JobsStatistics object to describe all the current jobs statistics
      Returns:
      a jobs statistics descriptor
      Throws:
      org.apache.sling.testing.clients.ClientException - if the HTTP call fails
    • getJobs

      public JobsList getJobs(String topic) throws org.apache.sling.testing.clients.ClientException
      Get a list of active and queued jobs for a specific topic
      Parameters:
      topic - the topic to filter jobs
      Returns:
      a list of jobs
      Throws:
      org.apache.sling.testing.clients.ClientException - if the call to the quickstart fails