Package com.intuit.karate.job
Class JobConfigBase<T>
- java.lang.Object
-
- com.intuit.karate.job.JobConfigBase<T>
-
- All Implemented Interfaces:
JobConfig<T>
- Direct Known Subclasses:
MavenJobConfig
public abstract class JobConfigBase<T> extends Object implements JobConfig<T>
- Author:
- pthomas3
-
-
Field Summary
Fields Modifier and Type Field Description protected StringaddOptionsprotected StringdockerImageprotected List<String>envPropKeysprotected static org.slf4j.Loggerloggerprotected List<String>sysPropKeys
-
Constructor Summary
Constructors Constructor Description JobConfigBase(int executorCount, String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEnvPropKey(String key)voidaddSysPropKey(String key)Map<String,String>getEnvironment()StringgetExecutorCommand(String jobId, String jobUrl, int index)intgetExecutorCount()StringgetHost()intgetPort()List<JobCommand>getShutdownCommands()List<JobCommand>getStartupCommands()voidonStart(String jobId, String jobUrl)voidonStop()voidsetAddOptions(String addOptions)voidsetDockerImage(String dockerImage)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.intuit.karate.job.JobConfig
getExecutorDir, getInitialChunks, getMainCommands, getPostCommands, getPreCommands, getSourcePath, getTimeoutMinutes, handleUpload
-
-
-
-
Constructor Detail
-
JobConfigBase
public JobConfigBase(int executorCount, String host, int port)
-
-
Method Detail
-
setAddOptions
public void setAddOptions(String addOptions)
-
getExecutorCommand
public String getExecutorCommand(String jobId, String jobUrl, int index)
- Specified by:
getExecutorCommandin interfaceJobConfig<T>
-
setDockerImage
public void setDockerImage(String dockerImage)
-
addSysPropKey
public void addSysPropKey(String key)
-
addEnvPropKey
public void addEnvPropKey(String key)
-
getExecutorCount
public int getExecutorCount()
- Specified by:
getExecutorCountin interfaceJobConfig<T>
-
getStartupCommands
public List<JobCommand> getStartupCommands()
- Specified by:
getStartupCommandsin interfaceJobConfig<T>
-
getShutdownCommands
public List<JobCommand> getShutdownCommands()
- Specified by:
getShutdownCommandsin interfaceJobConfig<T>
-
-