Commit 98dc4eb
authored
CLOUDSTACK-9782: New Background Polling Task Manager (#2218)
CloudStack has several background polling tasks that are spread across
the codebase, the aim of this work is to provide a single manager to
handle submission, execution and handling of background tasks. With
the framework implemented, existing oobm background task has been
refactored to use this manager.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>1 parent 5397106 commit 98dc4ebCopy full SHA for 98dc4eb
18 files changed
+334-115Lines changed: 334 additions & 115 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- api/src/org/apache/cloudstack
- api/command/admin/outofbandmanagement
- outofbandmanagement
- poll
- developer
- engine
- orchestration/src/com/cloud/agent/manager
- schema/src/org/apache/cloudstack/outofbandmanagement/dao
- server
- resources/META-INF/cloudstack/core
- src
- com/cloud/server
- org/apache/cloudstack
- outofbandmanagement
- poll
- test/org/apache/cloudstack/poll
- setup/dev
- test/integration/smoke
Expand file treeCollapse file tree
Open diff view settings
Collapse file
api/src/org/apache/cloudstack/api/command/admin/outofbandmanagement/ChangeOutOfBandManagementPasswordCmd.java
Copy file name to clipboardExpand all lines: api/src/org/apache/cloudstack/api/command/admin/outofbandmanagement/ChangeOutOfBandManagementPasswordCmd.java+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
77 | | - |
| 77 | + |
78 | 78 | |
79 | 79 | |
80 | 80 | |
|
Collapse file
api/src/org/apache/cloudstack/api/command/admin/outofbandmanagement/ConfigureOutOfBandManagementCmd.java
Copy file name to clipboardExpand all lines: api/src/org/apache/cloudstack/api/command/admin/outofbandmanagement/ConfigureOutOfBandManagementCmd.java+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
83 | 83 | |
84 | 84 | |
85 | 85 | |
86 | | - |
| 86 | + |
87 | 87 | |
88 | 88 | |
89 | 89 | |
|
Collapse file
api/src/org/apache/cloudstack/api/command/admin/outofbandmanagement/IssueOutOfBandManagementPowerActionCmd.java
Copy file name to clipboardExpand all lines: api/src/org/apache/cloudstack/api/command/admin/outofbandmanagement/IssueOutOfBandManagementPowerActionCmd.java+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
| 83 | + |
84 | 84 | |
85 | 85 | |
86 | 86 | |
|
Collapse file
api/src/org/apache/cloudstack/outofbandmanagement/OutOfBandManagementService.java
Copy file name to clipboardExpand all lines: api/src/org/apache/cloudstack/outofbandmanagement/OutOfBandManagementService.java+3-6Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
34 | | - |
35 | | - |
36 | 33 | |
37 | 34 | |
38 | 35 | |
| ||
49 | 46 | |
50 | 47 | |
51 | 48 | |
52 | | - |
53 | | - |
54 | | - |
| 49 | + |
| 50 | + |
| 51 | + |
55 | 52 | |
Collapse file
api/src/org/apache/cloudstack/poll/BackgroundPollManager.java
Copy file name to clipboard+30Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
Collapse file
api/src/org/apache/cloudstack/poll/BackgroundPollTask.java
Copy file name to clipboard+21Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
Collapse file
developer/developer-prefill.sql
Copy file name to clipboardExpand all lines: developer/developer-prefill.sql-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | 117 | |
122 | 118 | |
123 | 119 | |
|
Collapse file
engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
Copy file name to clipboardExpand all lines: engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
| 52 | + |
52 | 53 | |
53 | 54 | |
54 | 55 | |
| ||
120 | 121 | |
121 | 122 | |
122 | 123 | |
| 124 | + |
| 125 | + |
123 | 126 | |
124 | 127 | |
125 | 128 | |
| ||
736 | 739 | |
737 | 740 | |
738 | 741 | |
739 | | - |
| 742 | + |
740 | 743 | |
741 | 744 | |
742 | 745 | |
|
Collapse file
engine/schema/src/org/apache/cloudstack/outofbandmanagement/dao/OutOfBandManagementDao.java
Copy file name to clipboardExpand all lines: engine/schema/src/org/apache/cloudstack/outofbandmanagement/dao/OutOfBandManagementDao.java+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
Collapse file
engine/schema/src/org/apache/cloudstack/outofbandmanagement/dao/OutOfBandManagementDaoImpl.java
Copy file name to clipboardExpand all lines: engine/schema/src/org/apache/cloudstack/outofbandmanagement/dao/OutOfBandManagementDaoImpl.java+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
|
0 commit comments