org.springframework.yarn.boot.properties
Class SpringYarnBatchProperties
java.lang.Object
org.springframework.yarn.boot.properties.SpringYarnBatchProperties
@ConfigurationProperties(value="spring.yarn.batch")
public class SpringYarnBatchProperties
- extends java.lang.Object
Spring Boot ConfigurationProperties
for
spring.yarn.batch. These configuration properties
are used together with YarnJobLauncherCommandLineRunner
to define base functionality to execute jobs.
- Author:
- Janne Valkealahti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpringYarnBatchProperties
public SpringYarnBatchProperties()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
getJobs
public java.util.List<SpringYarnBatchProperties.JobProperties> getJobs()
setJobs
public void setJobs(java.util.List<SpringYarnBatchProperties.JobProperties> jobs)
getJobProperties
public SpringYarnBatchProperties.JobProperties getJobProperties(java.lang.String jobName)
- Find first occurrence for given job.
- Parameters:
jobName
- the job name
- Returns:
- the job properties, or
null
if not found.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object