aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/services/metadata/initializer/controller.cpp
blob: 7a76227f020de9f9b0a4405788778b4b690a8d7b (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
27
28
#include "controller.h"
#include "events.h"

#include <ydb/services/metadata/manager/modification_controller.h>

namespace NKikimr::NMetadata::NInitializer {

void TInitializerInput::OnPreparationFinished(const TVector<ITableModifier::TPtr>& modifiers) const {
    ActorId.Send(ActorId, new TEvInitializerPreparationFinished(modifiers));
}

void TInitializerInput::OnPreparationProblem(const TString& errorMessage) const {
    ActorId.Send(ActorId, new TEvInitializerPreparationProblem(errorMessage));
}

void TInitializerInput::OnAlteringProblem(const TString& errorMessage) {
    ActorId.Send(ActorId, new TEvAlterProblem(errorMessage));
}

void TInitializerInput::OnAlteringFinished() {
    ActorId.Send(ActorId, new TEvAlterFinished());
}

void TInitializerOutput::OnInitializationFinished(const TString& id) const {
    ActorId.Send(ActorId, new TEvInitializationFinished(id));
}

}