Package org.ovirt.engine.sdk4.services
Interface JobsService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
JobsServiceImpl
public interface JobsService extends Service
A service to manage jobs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
JobsService.AddRequest
Add an external job.static interface
JobsService.AddResponse
Add an external job.static interface
JobsService.ListRequest
Retrieves the representation of the jobs.static interface
JobsService.ListResponse
Retrieves the representation of the jobs.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JobsService.AddRequest
add()
Add an external job.JobService
jobService(String id)
Reference to the job service.JobsService.ListRequest
list()
Retrieves the representation of the jobs.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
-
-
-
Method Detail
-
add
JobsService.AddRequest add()
Add an external job. For example, to add a job with the following request: [source] ---- POST /ovirt-engine/api/jobs ---- With the following request body: [source,xml] ----Doing some work true Doing some work true true 2016-12-13T02:15:42.130+02:00 2016-12-13T02:15:42.130+02:00 started
-
list
JobsService.ListRequest list()
Retrieves the representation of the jobs. [source] ---- GET /ovirt-engine/api/jobs ---- You will receive response in XML like this one: [source,xml] ----Adding Disk true 2016-12-12T23:07:29.758+02:00 false 2016-12-12T23:07:29.758+02:00 2016-12-12T23:07:26.593+02:00 failed
-
jobService
JobService jobService(String id)
Reference to the job service.
-
-