brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [1/2] brooklyn-library git commit: Parametrize check running interval
Date Mon, 31 Oct 2016 08:59:37 GMT
Repository: brooklyn-library
Updated Branches:
  refs/heads/master 1db9b4f7b -> c1dc94aa6


Parametrize check running interval


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

Branch: refs/heads/master
Commit: d4b9a19999eb85ffc72594385794528a158c0c49
Parents: 1db9b4f
Author: Valentin Aitken <bostko@gmail.com>
Authored: Fri Oct 28 23:52:27 2016 +0300
Committer: Valentin Aitken <bostko@gmail.com>
Committed: Fri Oct 28 23:52:27 2016 +0300

----------------------------------------------------------------------
 .../apache/brooklyn/entity/database/mariadb/MariaDbNodeImpl.java   | 2 +-
 .../org/apache/brooklyn/entity/database/mysql/MySqlNodeImpl.java   | 2 +-
 .../org/apache/brooklyn/entity/monitoring/monit/MonitNodeImpl.java | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/d4b9a199/software/database/src/main/java/org/apache/brooklyn/entity/database/mariadb/MariaDbNodeImpl.java
----------------------------------------------------------------------
diff --git a/software/database/src/main/java/org/apache/brooklyn/entity/database/mariadb/MariaDbNodeImpl.java
b/software/database/src/main/java/org/apache/brooklyn/entity/database/mariadb/MariaDbNodeImpl.java
index 86a8bfb..4c960a6 100644
--- a/software/database/src/main/java/org/apache/brooklyn/entity/database/mariadb/MariaDbNodeImpl.java
+++ b/software/database/src/main/java/org/apache/brooklyn/entity/database/mariadb/MariaDbNodeImpl.java
@@ -78,7 +78,7 @@ public class MariaDbNodeImpl extends SoftwareProcessImpl implements MariaDbNode
             String cmd = getDriver().getStatusCmd();
             feed = SshFeed.builder()
                     .entity(this)
-                    .period(Duration.FIVE_SECONDS)
+                    .period(config().get(SERVICE_PROCESS_IS_RUNNING_POLL_PERIOD))
                     .machine(machine.get())
                     .poll(new SshPollConfig<Boolean>(SERVICE_UP)
                             .command(cmd)

http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/d4b9a199/software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlNodeImpl.java
----------------------------------------------------------------------
diff --git a/software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlNodeImpl.java
b/software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlNodeImpl.java
index 8a4c177..d71d5e1 100644
--- a/software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlNodeImpl.java
+++ b/software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlNodeImpl.java
@@ -107,7 +107,7 @@ public class MySqlNodeImpl extends SoftwareProcessImpl implements MySqlNode
{
             String cmd = getDriver().getStatusCmd();
             feed = SshFeed.builder()
                     .entity(this)
-                    .period(Duration.FIVE_SECONDS)
+                    .period(config().get(SERVICE_PROCESS_IS_RUNNING_POLL_PERIOD))
                     .machine(machine.get())
                     .poll(new SshPollConfig<Double>(QUERIES_PER_SECOND_FROM_MYSQL)
                             .command(cmd)

http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/d4b9a199/software/monitoring/src/main/java/org/apache/brooklyn/entity/monitoring/monit/MonitNodeImpl.java
----------------------------------------------------------------------
diff --git a/software/monitoring/src/main/java/org/apache/brooklyn/entity/monitoring/monit/MonitNodeImpl.java
b/software/monitoring/src/main/java/org/apache/brooklyn/entity/monitoring/monit/MonitNodeImpl.java
index 2702994..f3b2863 100644
--- a/software/monitoring/src/main/java/org/apache/brooklyn/entity/monitoring/monit/MonitNodeImpl.java
+++ b/software/monitoring/src/main/java/org/apache/brooklyn/entity/monitoring/monit/MonitNodeImpl.java
@@ -71,7 +71,7 @@ public class MonitNodeImpl extends SoftwareProcessImpl implements MonitNode
{
             String cmd = getDriver().getStatusCmd();
             feed = SshFeed.builder()
                 .entity(this)
-                .period(Duration.FIVE_SECONDS)
+                .period(config().get(SERVICE_PROCESS_IS_RUNNING_POLL_PERIOD))
                 .machine((SshMachineLocation) machine)
                 .poll(new SshPollConfig<Boolean>(SERVICE_UP)
                     .command(cmd)


Mime
View raw message