You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ni...@apache.org on 2013/12/10 17:01:19 UTC
[2/3] git commit: Cluster has a new attribute to identify a LB Cluster
Cluster has a new attribute to identify a LB Cluster
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/8f6e7c2e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/8f6e7c2e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/8f6e7c2e
Branch: refs/heads/master
Commit: 8f6e7c2ecb5837ede44546bbf390985aa4d270f7
Parents: 39bc10f
Author: Nirmal Fernando <ni...@apache.org>
Authored: Tue Dec 10 21:29:53 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Tue Dec 10 21:29:53 2013 +0530
----------------------------------------------------------------------
.../apache/stratos/messaging/domain/topology/Cluster.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8f6e7c2e/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
index 1bf940a..f3bdf2a 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
@@ -39,7 +39,7 @@ public class Cluster implements Serializable {
private String tenantRange;
private String autoscalePolicyName;
private String deploymentPolicyName = "economy-deployment";
-
+ private boolean isLbCluster;
// Key: Member.memberId
private Map<String, Member> memberMap;
private String loadBalanceAlgorithmName;
@@ -130,6 +130,14 @@ public class Cluster implements Serializable {
this.loadBalanceAlgorithmName = loadBalanceAlgorithmName;
}
+ public boolean isLbCluster() {
+ return isLbCluster;
+ }
+
+ public void setLbCluster(boolean isLbCluster) {
+ this.isLbCluster = isLbCluster;
+ }
+
public boolean tenantIdInRange(int tenantId) {
if(StringUtils.isBlank(getTenantRange())) {
return false;