diff options
author | Geir Storli <geirst@verizonmedia.com> | 2021-01-28 17:04:05 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2021-01-28 17:04:05 +0000 |
commit | 040a198ac7b43249e0851acde3563dbabd6e3d2d (patch) | |
tree | 2bc0d630b5b157d4a3b931221f4aed5974bc12ae /storage | |
parent | 7b29e5a7e26baf80adc83fc98fd8d4865984fa34 (diff) |
Register resource usage listener.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp | 3 | ||||
-rw-r--r-- | storage/src/vespa/storage/persistence/filestorage/filestormanager.h | 1 |
2 files changed, 3 insertions, 1 deletions
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<FileStorMetrics>()), _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<vespalib::IDestructorCallback> _bucketExecutorRegistration; ServiceLayerHostInfoReporter _host_info_reporter; + std::unique_ptr<vespalib::IDestructorCallback> _resource_usage_listener_registration; public: FileStorManager(const config::ConfigUri &, spi::PersistenceProvider&, |