Class JobServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.JobServiceImpl
-
- All Implemented Interfaces:
JobService,RestService
public class JobServiceImpl extends BaseSaharaServices implements JobService
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 JobServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jobcreate(Job job)Create a new jobActionResponsedelete(String JobId)Delete the specified jobJobget(String JobId)Get a job by IDJobConfigHintgetConfigHint(String type)Get Job Configuration HintsList<? extends Job>list()List all jobs-
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
-
list
public List<? extends Job> list()
List all jobs- Specified by:
listin interfaceJobService- Returns:
- list of jobs or empty
-
get
public Job get(String JobId)
Get a job by ID- Specified by:
getin interfaceJobService- Parameters:
JobId- the job identifier- Returns:
- the job or null if not found
-
create
public Job create(Job job)
Create a new job- Specified by:
createin interfaceJobService- Parameters:
job- the job to create- Returns:
- the created job
-
delete
public ActionResponse delete(String JobId)
Delete the specified job- Specified by:
deletein interfaceJobService- Parameters:
JobId- the job identifier- Returns:
- the action response
-
getConfigHint
public JobConfigHint getConfigHint(String type)
Get Job Configuration Hints- Specified by:
getConfigHintin interfaceJobService- Parameters:
type- the job type- Returns:
- the job configuration hints
-
-