This repository was archived by the owner on Aug 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-26
lines changed
rundeck-execution-mode-timer/grails-app
services/com/rundeck/plugin Expand file tree Collapse file tree 2 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,4 @@ package com.rundeck.plugin
2
2
3
3
class BootStrap {
4
4
5
- def executionModeService
6
- def updateModeProjectService
7
-
8
-
9
- def timer (String name ,Closure clos ){
10
- long bstart= System . currentTimeMillis()
11
- log. debug(" BEGIN: ${ name} " )
12
- def res= clos()
13
- log. debug(" ${ name} in ${ System.currentTimeMillis()-bstart} ms" )
14
- return res
15
- }
16
-
17
- def init = { servletContext ->
18
-
19
- timer(" executionModeService.init" ) {
20
- executionModeService. initProcess()
21
- }
22
-
23
- timer(" updateModeProjectService.init" ) {
24
- updateModeProjectService. initProcess()
25
- }
26
-
27
-
28
- }
29
- def destroy = {
30
- }
31
5
}
Original file line number Diff line number Diff line change
1
+ package com.rundeck.plugin
2
+
3
+ import grails.events.annotation.Subscriber
4
+
5
+ class BootStrapService {
6
+
7
+ def executionModeService
8
+ def updateModeProjectService
9
+
10
+ def timer (String name ,Closure clos ){
11
+ long bstart= System . currentTimeMillis()
12
+ log. debug(" BEGIN: ${ name} " )
13
+ def res= clos()
14
+ log. debug(" ${ name} in ${ System.currentTimeMillis()-bstart} ms" )
15
+ return res
16
+ }
17
+
18
+ @Subscriber (" rundeck.bootstrap" )
19
+ void init () {
20
+ timer(" executionModeService.init" ) {
21
+ executionModeService. initProcess()
22
+ }
23
+
24
+ timer(" updateModeProjectService.init" ) {
25
+ updateModeProjectService. initProcess()
26
+ }
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments