Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
778ca87c
Commit
778ca87c
authored
May 30, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3.x'
parents
6ecb99e0
6b55c511
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
AdminServerWebConfiguration.java
...entric/boot/admin/config/AdminServerWebConfiguration.java
+7
-4
No files found.
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/config/AdminServerWebConfiguration.java
View file @
778ca87c
...
...
@@ -20,6 +20,7 @@ import java.util.List;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.context.event.ApplicationReadyEvent
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
...
...
@@ -203,16 +204,18 @@ public class AdminServerWebConfiguration extends WebMvcConfigurerAdapter
@Bean
public
ScheduledTaskRegistrar
updateTaskRegistrar
()
{
ScheduledTaskRegistrar
registrar
=
new
ScheduledTaskRegistrar
();
return
new
ScheduledTaskRegistrar
();
}
registrar
.
addFixedRateTask
(
new
Runnable
()
{
@EventListener
public
void
onApplicationReadyEvent
(
ApplicationReadyEvent
event
)
{
updateTaskRegistrar
().
addFixedRateTask
(
new
Runnable
()
{
@Override
public
void
run
()
{
statusUpdater
().
updateStatusForAllApplications
();
}
},
adminServerProperties
().
getMonitor
().
getPeriod
());
return
registrar
;
updateTaskRegistrar
().
afterPropertiesSet
();
}
@Bean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment