org.openstack4j.api.sahara.JobService Maven / Gradle / Ivy
package org.openstack4j.api.sahara;
import java.util.List;
import org.openstack4j.common.RestService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.sahara.Job;
import org.openstack4j.model.sahara.JobConfigHint;
/**
* Sahara Data Processing Operations
*
* @author [email protected]
*/
public interface JobService extends RestService {
/**
* List all jobs
*
* @return list of jobs or empty
*/
List list();
/**
* Get a job by ID
* @param JobId the job identifier
* @return the job or null if not found
*/
Job get(String JobId);
/**
* Create a new job
*
* @param jobBinary the job to create
* @return the created job
*/
Job create(Job jobBinary);
/**
* Delete the specified job
*
* @param JobId the job identifier
* @return the action response
*/
ActionResponse delete(String JobId);
/**
* Get Job Configuration Hints
*
* @param type the job type
* @return the job configuration hints
*/
JobConfigHint getConfigHint(String type);
}