Class JobsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.JobsServiceImpl
-
- All Implemented Interfaces:
Service
,JobsService
public class JobsServiceImpl extends ServiceImpl implements JobsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.JobsService
JobsService.AddRequest, JobsService.AddResponse, JobsService.ListRequest, JobsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description JobsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete 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.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
JobsServiceImpl
public JobsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public JobsService.AddRequest add()
Description copied from interface:JobsService
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 - Specified by:
add
in interfaceJobsService
-
list
public JobsService.ListRequest list()
Description copied from interface:JobsService
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 - Specified by:
list
in interfaceJobsService
-
jobService
public JobService jobService(String id)
Description copied from interface:JobsService
Reference to the job service.- Specified by:
jobService
in interfaceJobsService
-
service
public Service service(String path)
Description copied from interface:JobsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceJobsService
-
-