blob: d91d026100680ec37d752eeca0dbe9fb2eec102f (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "dummydbowner.h"
#include <vespa/searchcore/proton/reference/document_db_reference_registry.h>
#include <vespa/searchcore/proton/matching/sessionmanager.h>
namespace proton {
DummyDBOwner::DummyDBOwner()
: _registry(std::make_shared<DocumentDBReferenceRegistry>()),
_sessionManager(std::make_unique<SessionManager>(10))
{}
DummyDBOwner::~DummyDBOwner() = default;
std::shared_ptr<IDocumentDBReferenceRegistry>
DummyDBOwner::getDocumentDBReferenceRegistry() const {
return _registry;
}
matching::SessionManager &
DummyDBOwner::session_manager() {
return *_sessionManager;
}
}
|