public interface JobStateService extends JobMetricsService
| Modifier and Type | Method and Description |
|---|---|
void |
done(java.lang.String jobId)
Called when the job is done.
|
void |
init(java.lang.String jobId)
Initialize the job.
|
boolean |
jobExists(java.lang.String jobId)
Returns true if the job exists locally.
|
void |
schedule(java.lang.String jobId,
com.netflix.genie.common.dto.JobRequest jobRequest,
com.netflix.genie.common.internal.dto.v4.Cluster cluster,
com.netflix.genie.common.internal.dto.v4.Command command,
java.util.List<com.netflix.genie.common.internal.dto.v4.Application> applications,
int memory)
Schedules the job.
|
getNumActiveJobs, getUsedMemoryvoid init(java.lang.String jobId)
jobId - job idvoid schedule(java.lang.String jobId,
com.netflix.genie.common.dto.JobRequest jobRequest,
com.netflix.genie.common.internal.dto.v4.Cluster cluster,
com.netflix.genie.common.internal.dto.v4.Command command,
java.util.List<com.netflix.genie.common.internal.dto.v4.Application> applications,
int memory)
jobId - job idjobRequest - job requestcluster - cluster for the job request based on the tags specifiedcommand - command for the job request based on command tags and cluster chosenapplications - applications to use based on the command that was selectedmemory - job memoryvoid done(java.lang.String jobId) throws com.netflix.genie.common.exceptions.GenieException
jobId - job idcom.netflix.genie.common.exceptions.GenieException - on unrecoverable errorboolean jobExists(java.lang.String jobId)
jobId - job id