aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/interconnect/interconnect_mon.h
blob: 3fb26053fbe04da8b00d6e8ce7f09d617482f1b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <library/cpp/actors/core/actor.h>
#include "interconnect_common.h"

namespace NInterconnect {

    NActors::IActor *CreateInterconnectMonActor(TIntrusivePtr<NActors::TInterconnectProxyCommon> common = nullptr);

    static inline NActors::TActorId MakeInterconnectMonActorId(ui32 nodeId) {
        char s[12] = {'I', 'C', 'O', 'v', 'e', 'r', 'v', 'i', 'e', 'w', 0, 0};
        return NActors::TActorId(nodeId, TStringBuf(s, 12));
    }

} // NInterconnect