blob: d425bfb6679a8a5887a988b597f1b20e7f5a5cdb (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "mirror_with_all.h"
#include <vespa/slobrok/sbmirror.h>
#include <vespa/fnet/frt/supervisor.h>
#include <vespa/fnet/transport.h>
namespace documentapi {
MirrorAndStuff::MirrorAndStuff(const slobrok::ConfiguratorFactory & config)
: _transport(std::make_unique<FNET_Transport>()),
_orb(std::make_unique<FRT_Supervisor>(_transport.get())),
_mirror(std::make_unique<slobrok::api::MirrorAPI>(*_orb, config))
{
_transport->Start();
}
MirrorAndStuff::~MirrorAndStuff() {
_transport->ShutDown(true);
}
}
|