public interface JobProxy
Modifier and Type | Method and Description |
---|---|
java.util.List<Job> |
getAllJobStatuses() |
Job |
getJobStatus(JobInstance jobInstance) |
boolean |
jobExists(JobInstance jobInstance) |
void |
start(JobInstance jobInstance)
Starts the job instance specified by jobName and jobId.
|
void |
stop(JobInstance jobInstance)
Stops the job instance specified by jobName and jobId.
|
boolean jobExists(JobInstance jobInstance)
jobInstance
- the instance of the jobjava.util.List<Job> getAllJobStatuses() throws java.io.IOException, java.lang.InterruptedException
Job
for each Samza job instance installed on this host.java.io.IOException
- if there was a problem executing the command to get the status.java.lang.InterruptedException
- if the thread was interrupted while waiting for the status result.Job getJobStatus(JobInstance jobInstance) throws java.io.IOException, java.lang.InterruptedException
jobInstance
- the instance of the job for which the status is needed.Job
containing
the status for the job specified by jobName and jobId.java.io.IOException
- if there was a problem executing the command to get the status.java.lang.InterruptedException
- if the thread was interrupted while waiting for the status result.void start(JobInstance jobInstance) throws java.lang.Exception
JobStatus.STARTING
or
JobStatus.STARTED
depending on the implementation.jobInstance
- the instance of the job to start.java.lang.Exception
- if the job could not be successfully started.void stop(JobInstance jobInstance) throws java.lang.Exception
JobStatus.STOPPED
.jobInstance
- the instance of the job to stop.java.lang.Exception
- if the job could not be successfully stopped.