Search in sources :

Example 1 with StatusUpdater

use of de.codecentric.boot.admin.registry.StatusUpdater in project spring-boot-admin by codecentric.

the class AdminServerCoreConfiguration method statusUpdater.

@Bean
@ConditionalOnMissingBean
public StatusUpdater statusUpdater(ApplicationStore applicationStore, ApplicationOperations applicationOperations) {
    StatusUpdater statusUpdater = new StatusUpdater(applicationStore, applicationOperations);
    statusUpdater.setStatusLifetime(adminServerProperties.getMonitor().getStatusLifetime());
    return statusUpdater;
}
Also used : StatusUpdater(de.codecentric.boot.admin.registry.StatusUpdater) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

StatusUpdater (de.codecentric.boot.admin.registry.StatusUpdater)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1