blob: 60a78c43d21967a3a744e51a45d4ea8abf75d8dd (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "sbenv.h"
#include "configshim.h"
#include <vespa/vespalib/util/thread.h>
#include <vespa/vespalib/util/runnable.h>
namespace slobrok {
class SlobrokServer : public vespalib::Runnable
{
private:
SBEnv _env;
std::thread _thread;
public:
SlobrokServer(ConfigShim &shim);
SlobrokServer(uint32_t port);
~SlobrokServer();
void run() override;
void stop() { _env.shutdown(); }
};
} // namespace slobrok
|