public abstract class ScriptJobProxy extends AbstractJobProxy implements ScriptPathProvider
AbstractJobProxy with some script support functionality.| Modifier and Type | Field and Description | 
|---|---|
| protected ScriptRunner | scriptRunner | 
config| Constructor and Description | 
|---|
| ScriptJobProxy(JobsResourceConfig config)Required constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract InstallationFinder | getInstallationFinder() | 
| java.lang.String | getScriptPath(JobInstance jobInstance,
             java.lang.String scriptName)Constructs the path to the specified script within the job installation. | 
fromFactory, getAllJobInstances, getAllJobStatuses, getJobSamzaStatus, getJobStatus, getJobStatusProvider, jobExistsprotected final ScriptRunner scriptRunner
public ScriptJobProxy(JobsResourceConfig config)
config - the config which specifies the path to the Samza framework installation.public java.lang.String getScriptPath(JobInstance jobInstance, java.lang.String scriptName) throws java.io.FileNotFoundException
getScriptPath in interface ScriptPathProviderjobInstance - the instance of the job.scriptName - the name of the script.java.io.FileNotFoundException - if the job installation path doesn't exist.protected abstract InstallationFinder getInstallationFinder()
InstallationFinder which will be used to find jobs installed on this machine.