forked from ydb-platform/nbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvolume_balancer.h
54 lines (36 loc) · 1.39 KB
/
volume_balancer.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#include "public.h"
#include <cloud/blockstore/libs/kikimr/components.h>
#include <cloud/blockstore/libs/kikimr/events.h>
#include <cloud/blockstore/libs/service/request.h>
#include <cloud/blockstore/private/api/protos/balancer.pb.h>
#include <contrib/ydb/library/actors/core/actorid.h>
#include <util/generic/string.h>
namespace NCloud::NBlockStore::NStorage {
////////////////////////////////////////////////////////////////////////////////
struct TEvVolumeBalancer
{
//
// Events declaration
//
enum EEvents
{
EvBegin = TBlockStoreEvents::VOLUME_BALANCER_START,
EvConfigureVolumeBalancerRequest = EvBegin + 1,
EvConfigureVolumeBalancerResponse = EvBegin + 2,
EvEnd
};
static_assert(EvEnd < (int)TBlockStoreEvents::VOLUME_BALANCER_END,
"EvEnd expected to be < TBlockStoreEvents::VOLUME_BALANCER_END");
using TEvConfigureVolumeBalancerRequest = TProtoRequestEvent<
NPrivateProto::TConfigureVolumeBalancerRequest,
EvConfigureVolumeBalancerRequest
>;
using TEvConfigureVolumeBalancerResponse = TProtoRequestEvent<
NPrivateProto::TConfigureVolumeBalancerResponse,
EvConfigureVolumeBalancerResponse
>;
};
////////////////////////////////////////////////////////////////////////////////
NActors::TActorId MakeVolumeBalancerServiceId();
} // namespace NCloud::NBlockStore::NStorage