org.jclouds.gogrid.services
Interface GridJobClient


public interface GridJobClient

Manages the customer's jobs.

Author:
Oleksiy Yarmula
See Also:

Method Summary
 Set<Job> getJobList(GetJobListOptions... options)
          Returns all jobs found.
 Set<Job> getJobsById(long... ids)
          Returns jobs for the corresponding id(s).
 Set<Job> getJobsForObjectName(String serverName)
          Returns jobs found for an object with a provided name.
 

Method Detail

getJobList

Set<Job> getJobList(GetJobListOptions... options)
Returns all jobs found. The resulting set may be narrowed down by providing GetJobListOptions. By default, the result is <=100 items from the date range of 4 weeks ago to now. NOTE: this method results in a big volume of data in response

Returns:
jobs found by request

getJobsForObjectName

Set<Job> getJobsForObjectName(String serverName)
Returns jobs found for an object with a provided name. Usually, in GoGrid a name will uniquely identify the object, or, as the docs state, some API methods will cause errors.

Parameters:
serverName - name of the object
Returns:
found jobs for the object

getJobsById

Set<Job> getJobsById(long... ids)
Returns jobs for the corresponding id(s). NOTE: there is a 1:1 relation between a job and its ID.

Parameters:
ids - ids for the jobs
Returns:
jobs found by the ids


Copyright © 2009-2011 jclouds. All Rights Reserved.