Merge pull request #846 from kishankavala/CLOUDSTACK-8870 Bug-ID: CLOUDSTACK-8870: Skip external device usage collection if no external devices existexternal network device usage monitor thread that runs every 5mins by default (based on global config external.network.stats.interval) and runs coalesce query to acquire a lock. When there are no external devices exist, there is no need to run usage collection. Added test case to verify that usage collection task is not run when there are no External LB or External FW
* pr/846: Bug-ID: CLOUDSTACK-8870: Skip external device usage collection if no external devices exist Signed-off-by: Will Stevens <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/87f6ad3c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/87f6ad3c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/87f6ad3c Branch: refs/heads/master Commit: 87f6ad3cc9f2ad5437f907c4fb39a6fe6857c6fe Parents: 678b28f c12d836 Author: Will Stevens <[email protected]> Authored: Wed May 25 22:55:10 2016 -0400 Committer: Will Stevens <[email protected]> Committed: Wed May 25 22:55:11 2016 -0400 ---------------------------------------------------------------------- engine/schema/src/com/cloud/host/dao/HostDao.java | 2 ++ engine/schema/src/com/cloud/host/dao/HostDaoImpl.java | 7 +++++++ .../cloud/network/ExternalDeviceUsageManagerImpl.java | 11 ++++++++++- .../ExternalLoadBalancerDeviceManagerImplTest.java | 13 +++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) ----------------------------------------------------------------------
