Repository: stratos Updated Branches: refs/heads/master 0a91c369d -> c38da53d8
Remove unused code Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c38da53d Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c38da53d Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c38da53d Branch: refs/heads/master Commit: c38da53d814971266b5ae63a43817562c178f239 Parents: 0a91c36 Author: Lahiru Sandaruwan <[email protected]> Authored: Fri Jun 12 13:27:15 2015 +0530 Committer: Lahiru Sandaruwan <[email protected]> Committed: Fri Jun 12 13:27:15 2015 +0530 ---------------------------------------------------------------------- .../context/partition/ClusterLevelPartitionContext.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/c38da53d/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java index 4037941..875fa1a 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java @@ -631,13 +631,6 @@ public class ClusterLevelPartitionContext extends PartitionContext implements Se } - -// @Override -// public int getCurrentElementCount() { -// //TODO find and return correct member instance count -// return 0; -// } - private class PendingMemberWatcher implements Runnable { private ClusterLevelPartitionContext ctxt; private final Log log = LogFactory.getLog(PendingMemberWatcher.class); @@ -674,7 +667,8 @@ public class ClusterLevelPartitionContext extends PartitionContext implements Se ctxt.addObsoleteMember(pendingMember); pendingMembersFailureCount++; if (pendingMembersFailureCount > PENDING_MEMBER_FAILURE_THRESHOLD) { - setPendingMemberExpiryTime(expiryTime * 2);//Doubles the expiry time after the threshold of failure exceeded + setPendingMemberExpiryTime(expiryTime * 2);//Doubles the expiry time after the threshold + // of failure exceeded //TODO Implement an alerting system: STRATOS-369 } }
