You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2014/12/03 15:51:57 UTC
stratos git commit: fixing to get the partitionId from GroupInstnace
Repository: stratos
Updated Branches:
refs/heads/master 2422b1a4b -> 6139e649e
fixing to get the partitionId from GroupInstnace
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/6139e649
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/6139e649
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/6139e649
Branch: refs/heads/master
Commit: 6139e649ef93d24596779e5964db8eef323eb873
Parents: 2422b1a
Author: reka <rt...@gmail.com>
Authored: Wed Dec 3 20:21:36 2014 +0530
Committer: reka <rt...@gmail.com>
Committed: Wed Dec 3 20:21:36 2014 +0530
----------------------------------------------------------------------
.../org/apache/stratos/autoscaler/monitor/MonitorFactory.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/6139e649/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
index 23d36e4..63e2b4a 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
@@ -87,10 +87,14 @@ public class MonitorFactory {
// FIXME: passing null as alias for cluster instance temporarily. should be removed.
for(String parentInstanceId : parentInstanceIds) {
Instance instance = parentMonitor.getInstance(parentInstanceId);
+ String partitionId = null;
+ if(instance instanceof GroupInstance) {
+ partitionId = ((GroupInstance)instance).getPartitionId();
+ }
if(instance != null) {
createClusterInstance(clusterChildCtxt.getServiceName(),
clusterMonitor.getClusterId(), null,
- parentInstanceId, instance.getPartitionId(),
+ parentInstanceId, partitionId,
instance.getNetworkPartitionId());
} else {