From 040a198ac7b43249e0851acde3563dbabd6e3d2d Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Thu, 28 Jan 2021 17:04:05 +0000 Subject: Register resource usage listener. --- storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp | 3 ++- storage/src/vespa/storage/persistence/filestorage/filestormanager.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp index 67fa22ada03..a46b4205570 100644 --- a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp +++ b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp @@ -78,7 +78,8 @@ FileStorManager(const config::ConfigUri & configUri, spi::PersistenceProvider& p _metrics(std::make_unique()), _closed(false), _lock(), - _host_info_reporter(_component.getStateUpdater()) + _host_info_reporter(_component.getStateUpdater()), + _resource_usage_listener_registration(provider.register_resource_usage_listener(_host_info_reporter)) { _configFetcher.subscribe(configUri.getConfigId(), this); _configFetcher.start(); diff --git a/storage/src/vespa/storage/persistence/filestorage/filestormanager.h b/storage/src/vespa/storage/persistence/filestorage/filestormanager.h index ae298d70a29..6eaef45e9bd 100644 --- a/storage/src/vespa/storage/persistence/filestorage/filestormanager.h +++ b/storage/src/vespa/storage/persistence/filestorage/filestormanager.h @@ -77,6 +77,7 @@ class FileStorManager : public StorageLinkQueued, std::mutex _lock; std::unique_ptr _bucketExecutorRegistration; ServiceLayerHostInfoReporter _host_info_reporter; + std::unique_ptr _resource_usage_listener_registration; public: FileStorManager(const config::ConfigUri &, spi::PersistenceProvider&, -- cgit v1.2.3