stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject stratos git commit: Simulating five seconds delay before publishing instance started event
Date Mon, 08 Dec 2014 11:23:32 GMT
Repository: stratos
Updated Branches:
  refs/heads/master 1480813ea -> 012aaac36


Simulating five seconds delay before publishing instance started event


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/012aaac3
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/012aaac3
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/012aaac3

Branch: refs/heads/master
Commit: 012aaac367815cff0ad75ef0e15c07a0cc580875
Parents: 1480813
Author: Imesh Gunaratne <imesh@apache.org>
Authored: Mon Dec 8 16:53:23 2014 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Mon Dec 8 16:53:23 2014 +0530

----------------------------------------------------------------------
 .../apache/stratos/cloud/controller/iaases/mock/MockMember.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/012aaac3/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/MockMember.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/MockMember.java
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/MockMember.java
index eb0f3c8..ec4a1e4 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/MockMember.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/MockMember.java
@@ -50,7 +50,9 @@ public class MockMember implements Runnable, Serializable {
             log.info(String.format("Mock member started: [member-id] %s", mockMemberContext.getMemberId()));
         }
 
+        sleep(5000);
         MockMemberEventPublisher.publishInstanceStartedEvent(mockMemberContext);
+
         sleep(5000);
         MockMemberEventPublisher.publishInstanceActivatedEvent(mockMemberContext);
 


Mime
View raw message