public class SimpleYarnJobProxy extends ScriptJobProxy
ScriptJobProxy
with methods specific to simple Samza deployments.scriptRunner
config
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.
|
getScriptPath
fromFactory, getAllJobStatuses, getJobSamzaStatus, getJobStatus, jobExists
public SimpleYarnJobProxy(JobsResourceConfig config) throws java.lang.Exception
java.lang.Exception
public void start(JobInstance jobInstance) throws java.lang.Exception
JobProxy
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.public void stop(JobInstance jobInstance) throws java.lang.Exception
JobProxy
JobStatus.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 AbstractJobProxy
JobStatusProvider
to use for retrieving job status.protected java.util.Set<JobInstance> getAllJobInstances()
getAllJobInstances
in class AbstractJobProxy
protected InstallationFinder getInstallationFinder()
getInstallationFinder
in class ScriptJobProxy
InstallationFinder
which will be used to find jobs installed on this machine.