brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [1/2] brooklyn-library git commit: NodeJs: suppress duplicate events for serviceUp
Date Wed, 30 Mar 2016 09:23:43 GMT
Repository: brooklyn-library
Updated Branches:
  refs/heads/master 67a4dda36 -> 9ae355cc4


NodeJs: suppress duplicate events for serviceUp

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/d7cea37d
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/d7cea37d
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/d7cea37d

Branch: refs/heads/master
Commit: d7cea37d7ab2e5576b87189378a43154e3454996
Parents: 3216b7a
Author: Aled Sage <aled.sage@gmail.com>
Authored: Wed Mar 30 00:03:49 2016 +0100
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Wed Mar 30 00:03:49 2016 +0100

----------------------------------------------------------------------
 .../brooklyn/entity/webapp/nodejs/NodeJsWebAppServiceImpl.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/d7cea37d/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/nodejs/NodeJsWebAppServiceImpl.java
----------------------------------------------------------------------
diff --git a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/nodejs/NodeJsWebAppServiceImpl.java
b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/nodejs/NodeJsWebAppServiceImpl.java
index a45e108..92c9b2d 100644
--- a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/nodejs/NodeJsWebAppServiceImpl.java
+++ b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/nodejs/NodeJsWebAppServiceImpl.java
@@ -64,6 +64,7 @@ public class NodeJsWebAppServiceImpl extends SoftwareProcessImpl implements
Node
                     .entity(this)
                     .baseUri(nodeJsUrl)
                     .poll(new HttpPollConfig<Boolean>(SERVICE_UP)
+                            .suppressDuplicates(true)
                             .suburl(getConfig(NodeJsWebAppService.SERVICE_UP_PATH))
                             .checkSuccess(Predicates.alwaysTrue())
                             .onSuccess(HttpValueFunctions.responseCodeEquals(200))


Mime
View raw message