public class SimpleYarnJobProxy extends ScriptJobProxy
ScriptJobProxy with methods specific to simple Samza deployments.scriptRunnerconfig| Constructor and Description |
|---|
SimpleYarnJobProxy(JobsResourceConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<JobInstance> |
getAllJobInstances() |
protected InstallationFinder |
getInstallationFinder() |
JobStatusProvider |
getJobStatusProvider() |
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.
|
getScriptPathfromFactory, getAllJobStatuses, getJobSamzaStatus, getJobStatus, jobExistspublic SimpleYarnJobProxy(JobsResourceConfig config) throws java.lang.Exception
java.lang.Exceptionpublic void start(JobInstance jobInstance) throws java.lang.Exception
JobProxyJobStatus.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.public void stop(JobInstance jobInstance) throws java.lang.Exception
JobProxyJobStatus.STOPPED.jobInstance - the instance of the job to stop.java.lang.Exception - if the job could not be successfully stopped.public JobStatusProvider getJobStatusProvider()
getJobStatusProvider in class AbstractJobProxyJobStatusProvider to use for retrieving job status.protected java.util.Set<JobInstance> getAllJobInstances()
getAllJobInstances in class AbstractJobProxyprotected InstallationFinder getInstallationFinder()
getInstallationFinder in class ScriptJobProxyInstallationFinder which will be used to find jobs installed on this machine.