Class ExecutionAutoConfiguration
java.lang.Object
com.netflix.genie.agent.execution.ExecutionAutoConfiguration
@Configuration
@EnableConfigurationProperties(AgentProperties.class)
public class ExecutionAutoConfiguration
extends Object
Spring auto configuration for beans required for job execution.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvide a lazyConsoleLogListener
bean.jobExecutionTracingListener
(brave.Tracer tracer) Provide an instance ofTracingListener
which will add metadata to spans based on events through the execution state machine.Provide a lazyLoggingListener
bean.
-
Constructor Details
-
ExecutionAutoConfiguration
public ExecutionAutoConfiguration()
-
-
Method Details
-
loggingListener
@Bean @Lazy @ConditionalOnMissingBean(LoggingListener.class) public LoggingListener loggingListener()Provide a lazyLoggingListener
bean.- Returns:
- A
LoggingListener
instance
-
consoleLogLoggingListener
@Bean @Lazy @ConditionalOnMissingBean(ConsoleLogListener.class) public ConsoleLogListener consoleLogLoggingListener()Provide a lazyConsoleLogListener
bean.- Returns:
- A
ConsoleLogListener
instance
-
jobExecutionTracingListener
@Bean @Lazy @ConditionalOnMissingBean(TracingListener.class) public TracingListener jobExecutionTracingListener(brave.Tracer tracer) Provide an instance ofTracingListener
which will add metadata to spans based on events through the execution state machine.- Parameters:
tracer
- TheTracer
to use to get active spans- Returns:
- A
TracingListener
instance
-