@Configuration
public class JobConfig
extends java.lang.Object
Constructor and Description |
---|
JobConfig() |
Modifier and Type | Method and Description |
---|---|
WorkflowTask |
applicationProcessorTask(com.netflix.spectator.api.Registry registry,
GenieFileTransferService fts)
Create an Application Task bean that processes all Applications needed for a job.
|
WorkflowTask |
clusterProcessorTask(com.netflix.spectator.api.Registry registry,
GenieFileTransferService fts)
Create an Cluster Task bean that processes the cluster needed for a job.
|
WorkflowTask |
commandProcessorTask(com.netflix.spectator.api.Registry registry,
GenieFileTransferService fts)
Create an Command Task bean that processes the command needed for a job.
|
FileTransfer |
httpFileTransfer(org.springframework.web.client.RestTemplate restTemplate,
com.netflix.spectator.api.Registry registry)
Bean to create a http[s] file transfer object.
|
WorkflowTask |
initialSetupTask(com.netflix.spectator.api.Registry registry)
Create an setup Task bean that does initial setup before any of the tasks start.
|
WorkflowTask |
jobKickoffTask(JobsProperties jobsProperties,
org.apache.commons.exec.Executor executor,
java.lang.String hostName,
com.netflix.spectator.api.Registry registry)
Create an Job Kickoff Task bean that runs the job.
|
WorkflowTask |
jobKillLogicTask(com.netflix.spectator.api.Registry registry)
Create a task that adds logic to handle kill requests to a job.
|
WorkflowTask |
jobProcessorTask(AttachmentService attachmentService,
com.netflix.spectator.api.Registry registry,
GenieFileTransferService fts)
Create an Job Task bean that processes Job information provided by user.
|
FileTransfer |
localFileTransfer()
Bean to create a local file transfer object.
|
@Bean(name={"file.system.file","file.system.null"}) @Order(value=2) public FileTransfer localFileTransfer()
@Bean(name={"file.system.http","file.system.https"}) @Order(value=3) public FileTransfer httpFileTransfer(org.springframework.web.client.RestTemplate restTemplate, com.netflix.spectator.api.Registry registry)
restTemplate
- The rest template to useregistry
- The registry to use for metrics@Bean @Order(value=0) public WorkflowTask jobKillLogicTask(com.netflix.spectator.api.Registry registry)
registry
- The metrics registry to use@Bean @Order(value=1) public WorkflowTask initialSetupTask(com.netflix.spectator.api.Registry registry)
registry
- The metrics registry to use@Bean @Order(value=2) public WorkflowTask clusterProcessorTask(com.netflix.spectator.api.Registry registry, @Qualifier(value="cacheGenieFileTransferService") GenieFileTransferService fts)
registry
- The metrics registry to usefts
- File transfer implementation@Bean @Order(value=3) public WorkflowTask applicationProcessorTask(com.netflix.spectator.api.Registry registry, @Qualifier(value="cacheGenieFileTransferService") GenieFileTransferService fts)
registry
- The metrics registry to usefts
- File transfer implementation@Bean @Order(value=4) public WorkflowTask commandProcessorTask(com.netflix.spectator.api.Registry registry, @Qualifier(value="cacheGenieFileTransferService") GenieFileTransferService fts)
registry
- The metrics registry to usefts
- File transfer implementation@Bean @Order(value=5) @Autowired public WorkflowTask jobProcessorTask(AttachmentService attachmentService, com.netflix.spectator.api.Registry registry, @Qualifier(value="genieFileTransferService") GenieFileTransferService fts) throws GenieException
attachmentService
- An implementation of the attachment serviceregistry
- The metrics registry to usefts
- File transfer implementationGenieException
- if there is any problem@Bean @Order(value=6) @Autowired public WorkflowTask jobKickoffTask(JobsProperties jobsProperties, org.apache.commons.exec.Executor executor, java.lang.String hostName, com.netflix.spectator.api.Registry registry)
jobsProperties
- The various jobs propertiesexecutor
- An instance of an executorhostName
- Host on which the job will runregistry
- The metrics registry to use