@Configuration
public class AgentAutoConfiguration
extends java.lang.Object
Constructor and Description |
---|
AgentAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
AgentMetadata |
agentMetadata()
Provide a lazy bean definition for
AgentMetadata if none already exists. |
FileLockFactory |
fileLockFactory()
Provide a lazy
FileLockFactory . |
org.springframework.scheduling.TaskScheduler |
heartBeatServiceTaskExecutor()
Provide a lazy
TaskScheduler bean for use by the heart beat service is none has already been
defined in the context. |
org.springframework.core.task.TaskExecutor |
sharedAgentTaskExecutor()
Get a lazy task executor bean which may be shared by different components if one isn't already defined.
|
@Bean @Lazy @ConditionalOnMissingBean(value=AgentMetadata.class) public AgentMetadata agentMetadata()
AgentMetadata
if none already exists.AgentMetadataImpl
instance@Bean @Lazy public FileLockFactory fileLockFactory()
FileLockFactory
.FileLockFactory
instance@Bean @Lazy @ConditionalOnMissingBean(name="sharedAgentTaskExecutor", value=org.springframework.core.task.TaskExecutor.class) public org.springframework.core.task.TaskExecutor sharedAgentTaskExecutor()
@Bean @Lazy @ConditionalOnMissingBean(name="heartBeatServiceTaskExecutor", value=org.springframework.scheduling.TaskScheduler.class) public org.springframework.scheduling.TaskScheduler heartBeatServiceTaskExecutor()
TaskScheduler
bean for use by the heart beat service is none has already been
defined in the context.TaskScheduler
that the heart beat service should use