Merge pull request #340 from aledsage/feature/jmx-polling-for-unreachable Adds JMX reachable listener, for setting service-down
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/a403e15b Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/a403e15b Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/a403e15b Branch: refs/heads/0.4.0 Commit: a403e15bbacbf5096a4d1cdb4fedb09b25a86a93 Parents: 41d171e 79ddd7e Author: Aled Sage <[email protected]> Authored: Tue Oct 9 02:14:03 2012 -0700 Committer: Aled Sage <[email protected]> Committed: Tue Oct 9 02:14:03 2012 -0700 ---------------------------------------------------------------------- .../event/adapter/AbstractPollHelper.groovy | 14 +++- .../event/adapter/AbstractSensorAdapter.groovy | 10 +-- .../event/adapter/JmxAttributeAdapter.groovy | 15 ++-- .../java/brooklyn/event/adapter/JmxHelper.java | 2 +- .../event/adapter/JmxObjectNameAdapter.groovy | 5 ++ .../event/adapter/JmxReachableAdapter.java | 78 ++++++++++++++++++++ .../event/adapter/SensorRegistry.groovy | 10 +-- .../java/brooklyn/util/GroovyJavaMethods.groovy | 4 +- .../util/task/BasicExecutionManager.java | 5 +- .../event/adapter/JmxSensorAdapterTest.groovy | 55 +++++++++++++- .../basic/AbstractSoftwareProcessDriver.java | 5 ++ .../basic/AbstractSoftwareProcessSshDriver.java | 13 +++- .../entity/basic/SoftwareProcessDriver.java | 9 ++- .../lifecycle/legacy/SshBasedAppSetup.groovy | 6 ++ .../entity/java/VanillaJavaAppSshDriver.java | 6 ++ .../basic/SoftwareProcessEntityTest.groovy | 6 ++ ...ftwareProcessSshDriverIntegrationTest.groovy | 6 ++ .../lifecycle/StartStopSshDriverTest.groovy | 1 + .../entity/java/EntityPollingTest.groovy | 3 + 19 files changed, 229 insertions(+), 24 deletions(-) ----------------------------------------------------------------------
