Class JobServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.JobServiceImpl
-
- All Implemented Interfaces:
Service
,JobService
public class JobServiceImpl extends ServiceImpl implements JobService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.JobService
JobService.ClearRequest, JobService.ClearResponse, JobService.EndRequest, JobService.EndResponse, JobService.GetRequest, JobService.GetResponse
-
-
Constructor Summary
Constructors Constructor Description JobServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobService.ClearRequest
clear()
Set an external job execution to be cleared by the system.JobService.EndRequest
end()
Marks an external job execution as ended.JobService.GetRequest
get()
Retrieves a job.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.StepsService
stepsService()
List all the steps of the job.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
JobServiceImpl
public JobServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
clear
public JobService.ClearRequest clear()
Description copied from interface:JobService
Set an external job execution to be cleared by the system. For example, to set a job with identifier `123` send the following request: [source] ---- POST /ovirt-engine/api/jobs/clear ---- With the following request body: [source,xml] -------- - Specified by:
clear
in interfaceJobService
-
end
public JobService.EndRequest end()
Description copied from interface:JobService
Marks an external job execution as ended. For example, to terminate a job with identifier `123` send the following request: [source] ---- POST /ovirt-engine/api/jobs/end ---- With the following request body: [source,xml] ----true finished - Specified by:
end
in interfaceJobService
-
get
public JobService.GetRequest get()
Description copied from interface:JobService
Retrieves a job. [source] ---- GET /ovirt-engine/api/jobs/123 ---- 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:
get
in interfaceJobService
-
stepsService
public StepsService stepsService()
Description copied from interface:JobService
List all the steps of the job. The order of the returned list of steps isn't guaranteed.- Specified by:
stepsService
in interfaceJobService
-
service
public Service service(String path)
Description copied from interface:JobService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceJobService
-
-