blob: a3b2b3c8e9917bf142ce6827a72a67da968ab3cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "distributor_bucket_space.h"
#include "distributor_bucket_space_repo.h"
#include "distributor_component.h"
namespace storage::distributor {
DistributorComponent::DistributorComponent(DistributorInterface& distributor,
DistributorComponentRegister& comp_reg,
const std::string& name)
: storage::DistributorComponent(comp_reg, name),
_distributor(distributor),
_bucket_space_states()
{
}
DistributorComponent::~DistributorComponent() = default;
api::StorageMessageAddress
DistributorComponent::node_address(uint16_t node_index) const noexcept
{
return api::StorageMessageAddress::create(cluster_name_ptr(), lib::NodeType::STORAGE, node_index);
}
}
|