Repository: brooklyn-server Updated Branches: refs/heads/master 8c69a7d99 -> d389e40d5
EmptySoftwareProcessImpl: improve setting of service.isRunning Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/d10282cc Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/d10282cc Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/d10282cc Branch: refs/heads/master Commit: d10282cc037184b2819dccb8e819894a7cfd98c6 Parents: c5ba381 Author: Aled Sage <aled.s...@gmail.com> Authored: Fri Sep 15 09:14:35 2017 +0100 Committer: Aled Sage <aled.s...@gmail.com> Committed: Fri Sep 15 18:56:41 2017 +0100 ---------------------------------------------------------------------- .../brooklyn/entity/software/base/EmptySoftwareProcessImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/d10282cc/software/base/src/main/java/org/apache/brooklyn/entity/software/base/EmptySoftwareProcessImpl.java ---------------------------------------------------------------------- diff --git a/software/base/src/main/java/org/apache/brooklyn/entity/software/base/EmptySoftwareProcessImpl.java b/software/base/src/main/java/org/apache/brooklyn/entity/software/base/EmptySoftwareProcessImpl.java index 7330461..2a8c721 100644 --- a/software/base/src/main/java/org/apache/brooklyn/entity/software/base/EmptySoftwareProcessImpl.java +++ b/software/base/src/main/java/org/apache/brooklyn/entity/software/base/EmptySoftwareProcessImpl.java @@ -18,7 +18,7 @@ */ package org.apache.brooklyn.entity.software.base; -import org.apache.brooklyn.core.entity.Attributes; +import org.apache.brooklyn.core.entity.lifecycle.ServiceStateLogic.ServiceNotUpLogic; public class EmptySoftwareProcessImpl extends SoftwareProcessImpl implements EmptySoftwareProcess { @@ -33,7 +33,7 @@ public class EmptySoftwareProcessImpl extends SoftwareProcessImpl implements Emp if (isSshMonitoringEnabled()) { connectServiceUpIsRunning(); } else { - sensors().set(Attributes.SERVICE_UP, true); + ServiceNotUpLogic.clearNotUpIndicator(this, SERVICE_PROCESS_IS_RUNNING); } }