Class JobExecutionServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.JobExecutionServiceImpl
-
- All Implemented Interfaces:
JobExecutionService,RestService
public class JobExecutionServiceImpl extends BaseSaharaServices implements JobExecutionService
Sahara Data Processing Operations- Author:
- ekasit.kijsipongse@nectec.or.th, siwat.pru@outlook.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description JobExecutionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobExecutioncancel(String jobExecutionId)Cancel a job execution by IDJobExecutioncreate(JobExecution jobExecution)Create a new job executionActionResponsedelete(String jobExecutionId)Delete a job execution by IDJobExecutionget(String jobExecutionId)Get a job execution by IDList<? extends JobExecution>list()List all job executionsJobExecutionrefreshStatus(String jobExecutionId)Refresh the status of a job execution by ID-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
create
public JobExecution create(JobExecution jobExecution)
Description copied from interface:JobExecutionServiceCreate a new job execution- Specified by:
createin interfaceJobExecutionService- Parameters:
jobExecution- the job execution to create- Returns:
- the created job execution
-
list
public List<? extends JobExecution> list()
Description copied from interface:JobExecutionServiceList all job executions- Specified by:
listin interfaceJobExecutionService- Returns:
- list of job executions or empty
-
get
public JobExecution get(String jobExecutionId)
Description copied from interface:JobExecutionServiceGet a job execution by ID- Specified by:
getin interfaceJobExecutionService- Parameters:
jobExecutionId- the job execution identifier- Returns:
- the job execution or null if not found
-
refreshStatus
public JobExecution refreshStatus(String jobExecutionId)
Description copied from interface:JobExecutionServiceRefresh the status of a job execution by ID- Specified by:
refreshStatusin interfaceJobExecutionService- Parameters:
jobExecutionId- the job execution identifier- Returns:
- the refreshed job execution or null if not found
-
cancel
public JobExecution cancel(String jobExecutionId)
Description copied from interface:JobExecutionServiceCancel a job execution by ID- Specified by:
cancelin interfaceJobExecutionService- Parameters:
jobExecutionId- the job execution identifier- Returns:
- the canceled job execution or null if not found
-
delete
public ActionResponse delete(String jobExecutionId)
Description copied from interface:JobExecutionServiceDelete a job execution by ID- Specified by:
deletein interfaceJobExecutionService- Parameters:
jobExecutionId- the job execution identifier- Returns:
- the action response
-
-