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
28a80e70
Commit
28a80e70
authored
Nov 08, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x'
parents
5a85affa
ebd94f0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
module.js
spring-boot-admin-server-ui/modules/applications/module.js
+4
-4
JournalController.java
...codecentric/boot/admin/journal/web/JournalController.java
+9
-0
No files found.
spring-boot-admin-server-ui/modules/applications/module.js
View file @
28a80e70
...
...
@@ -123,8 +123,8 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG
};
if
(
event
.
type
===
'REGISTRATION'
)
{
applicationGroups
.
addApplication
(
event
.
application
,
false
);
refresh
(
event
.
application
);
var
group
=
applicationGroups
.
addApplication
(
event
.
application
,
false
);
refresh
(
group
,
event
.
application
);
title
+=
' instance registered.'
;
options
.
tag
=
event
.
application
.
id
+
'-REGISTRY'
;
}
else
if
(
event
.
type
===
'DEREGISTRATION'
)
{
...
...
@@ -132,8 +132,8 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG
title
+=
' instance removed.'
;
options
.
tag
=
event
.
application
.
id
+
'-REGISTRY'
;
}
else
if
(
event
.
type
===
'STATUS_CHANGE'
)
{
refresh
(
event
.
application
);
applicationGroups
.
addApplication
(
event
.
application
,
true
);
var
group2
=
applicationGroups
.
addApplication
(
event
.
application
,
true
);
refresh
(
group2
,
event
.
application
);
title
+=
' instance is '
+
event
.
to
.
status
;
options
.
tag
=
event
.
application
.
id
+
'-STATUS'
;
options
.
icon
=
event
.
to
.
status
!==
'UP'
?
require
(
'./img/error.png'
)
:
require
(
'./img/ok.png'
);
...
...
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/journal/web/JournalController.java
View file @
28a80e70
...
...
@@ -21,13 +21,17 @@ import java.util.ArrayList;
import
java.util.Collection
;
import
java.util.LinkedList
;
import
javax.servlet.http.HttpServletRequest
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.http.MediaType
;
import
org.springframework.util.MimeTypeUtils
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.context.request.async.AsyncRequestTimeoutException
;
import
org.springframework.web.servlet.mvc.method.annotation.SseEmitter
;
import
de.codecentric.boot.admin.event.ClientApplicationEvent
;
...
...
@@ -81,4 +85,9 @@ public class JournalController {
}
}
}
@ExceptionHandler
(
AsyncRequestTimeoutException
.
class
)
public
void
asyncRequestTimeoutExceptionHandler
(
HttpServletRequest
req
)
{
LOGGER
.
debug
(
"Async request to '{}' timed out"
,
req
.
getRequestURI
());
}
}
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