public class JobsClient
extends java.lang.Object
Constructor and Description |
---|
JobsClient(java.util.List<java.lang.String> jobStatusServers) |
Modifier and Type | Method and Description |
---|---|
JobStatus |
getJobStatus(JobInstance jobInstance)
This method should be used to find the JobStatus of a jobInstance.
|
java.util.List<Task> |
getTasks(JobInstance jobInstance)
This method retrieves and returns the list of tasks that are associated with a JobInstance.
|
public JobsClient(java.util.List<java.lang.String> jobStatusServers)
jobStatusServers
- list of jobStatusServers, where each jobStatusServer is of the form Host:Portpublic java.util.List<Task> getTasks(JobInstance jobInstance)
jobInstance
- an instance of the samza job.org.apache.samza.SamzaException
- if there were any problems with the http request.public JobStatus getJobStatus(JobInstance jobInstance)
jobInstance
- a instance of the job.JobInstance
.org.apache.samza.SamzaException
- if there are any problems with the http request.