You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ga...@apache.org on 2015/01/13 15:50:49 UTC
stratos git commit: Fixes to start all the dependencies in the
ApplicationChildContext
Repository: stratos
Updated Branches:
refs/heads/master d394d6057 -> 9a47826e8
Fixes to start all the dependencies in the ApplicationChildContext
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/9a47826e
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/9a47826e
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/9a47826e
Branch: refs/heads/master
Commit: 9a47826e87bab537e0a461559a25e3c3a4b23314
Parents: d394d60
Author: gayan <ga...@puppet.gayan.org>
Authored: Tue Jan 13 20:20:24 2015 +0530
Committer: gayan <ga...@puppet.gayan.org>
Committed: Tue Jan 13 20:20:24 2015 +0530
----------------------------------------------------------------------
.../monitor/component/ParentComponentMonitor.java | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/9a47826e/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ParentComponentMonitor.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ParentComponentMonitor.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ParentComponentMonitor.java
index 82bb67a..a357459 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ParentComponentMonitor.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ParentComponentMonitor.java
@@ -694,14 +694,15 @@ public abstract class ParentComponentMonitor extends Monitor implements Runnable
protected synchronized void startMonitor(ParentComponentMonitor parent,
ApplicationChildContext context, List<String> instanceIds) {
-
- if (!this.aliasToActiveMonitorsMap.containsKey(context.getId())) {
- pendingMonitorsList.add(context.getId());
- executorService.submit(new MonitorAdder(parent, context, this.appId, instanceIds));
- if (log.isDebugEnabled()) {
- log.debug(String.format("Monitor Adder has been added: [cluster] %s ", context.getId()));
- }
- }
+ for (ApplicationChildContext contextInner : context.getApplicationChildContextList()) {
+ if (!this.aliasToActiveMonitorsMap.containsKey(contextInner.getId())) {
+ pendingMonitorsList.add(context.getId());
+ executorService.submit(new MonitorAdder(parent, contextInner, this.appId, instanceIds));
+ if (log.isDebugEnabled()) {
+ log.debug(String.format("Monitor Adder has been added: [cluster] %s ", contextInner.getId()));
+ }
+ }
+ }
}