You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:49:35 UTC
[49/50] brooklyn-server git commit: Fix
SoftwareProcess.connectServiceUpIsRunning
Fix SoftwareProcess.connectServiceUpIsRunning
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/7a931fc0
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/7a931fc0
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/7a931fc0
Branch: refs/heads/0.5.0
Commit: 7a931fc03a4cf09717471020bb7fbe7077df432d
Parents: 755d1ed
Author: Aled Sage <al...@gmail.com>
Authored: Thu May 2 11:30:48 2013 +0100
Committer: Aled Sage <al...@gmail.com>
Committed: Thu May 2 11:30:48 2013 +0100
----------------------------------------------------------------------
.../main/java/brooklyn/entity/basic/SoftwareProcessImpl.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/7a931fc0/software/base/src/main/java/brooklyn/entity/basic/SoftwareProcessImpl.java
----------------------------------------------------------------------
diff --git a/software/base/src/main/java/brooklyn/entity/basic/SoftwareProcessImpl.java b/software/base/src/main/java/brooklyn/entity/basic/SoftwareProcessImpl.java
index 8a02ca9..48982a7 100644
--- a/software/base/src/main/java/brooklyn/entity/basic/SoftwareProcessImpl.java
+++ b/software/base/src/main/java/brooklyn/entity/basic/SoftwareProcessImpl.java
@@ -55,6 +55,9 @@ public abstract class SoftwareProcessImpl extends AbstractEntity implements Soft
private transient SoftwareProcessDriver driver;
protected transient SensorRegistry sensorRegistry;
+ /** @see #connectServiceUpIsRunning() */
+ private volatile FunctionFeed serviceUp;
+
public SoftwareProcessImpl() {
super(MutableMap.of(), null);
}
@@ -111,9 +114,6 @@ public abstract class SoftwareProcessImpl extends AbstractEntity implements Soft
protected void connectSensors() {
}
- /** @see #connectServiceUpIsRunning() */
- private volatile FunctionFeed serviceUp;
-
/**
* For connecting the {@link #SERVICE_UP} sensor to the value of the {@code getDriver().isRunning()} expression.
* <p>
@@ -122,7 +122,7 @@ public abstract class SoftwareProcessImpl extends AbstractEntity implements Soft
* @see #disconnectServiceUpIsRunning()
*/
protected void connectServiceUpIsRunning() {
- FunctionFeed serviceUp = FunctionFeed.builder()
+ serviceUp = FunctionFeed.builder()
.entity(this)
.period(5000)
.poll(new FunctionPollConfig<Boolean, Boolean>(SERVICE_UP)