Rebase and merge changes of PR#131
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/a9c0bb53 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/a9c0bb53 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/a9c0bb53 Branch: refs/heads/master Commit: a9c0bb537adf9436f73fa32414e378c2e4fc07bf Parents: 1a6b1c1 Author: gayan <[email protected]> Authored: Wed Dec 3 16:43:44 2014 +0530 Committer: gayan <[email protected]> Committed: Wed Dec 3 16:43:44 2014 +0530 ---------------------------------------------------------------------- .../receiver/health/AutoscalerHealthStatEventReceiver.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/a9c0bb53/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/health/AutoscalerHealthStatEventReceiver.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/health/AutoscalerHealthStatEventReceiver.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/health/AutoscalerHealthStatEventReceiver.java index 7e8d1a9..75f7a2d 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/health/AutoscalerHealthStatEventReceiver.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/health/AutoscalerHealthStatEventReceiver.java @@ -83,7 +83,11 @@ public class AutoscalerHealthStatEventReceiver { public void execute() { //FIXME this activated before autoscaler deployer activated. - healthStatEventReceiver.setExecutorService(executorService); + try { + Thread.sleep(15000); + } catch (InterruptedException ignore) { + } + healthStatEventReceiver.setExecutorService(executorService); healthStatEventReceiver.execute(); if(log.isInfoEnabled()) {
