aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/storageserver/storagenodecontext.cpp
blob: c8fccf2c27468527357e1a7fc5f92aa623a1cbc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "storagenodecontext.h"
#include <vespa/storageframework/generic/clock/clock.h>

namespace storage {

StorageNodeContext::StorageNodeContext(std::unique_ptr<ComponentRegister> compReg, std::unique_ptr<framework::Clock> clock)
    : _componentRegister(std::move(compReg)),
      _clock(std::move(clock)),
      _threadPool(*_clock)
{
    _componentRegister->setClock(*_clock);
    _componentRegister->setThreadPool(_threadPool);
}

StorageNodeContext::~StorageNodeContext() = default;

} // storage