aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/flushengine/tls_stats_factory.h
blob: d1be97998b8868a9079a8312837bce7a7cf6cfcc (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.
#pragma once

#include "i_tls_stats_factory.h"
#include <memory>

namespace search { namespace transactionlog { class TransLogServer; } }

namespace proton::flushengine {

/*
 * Class used to create statistics for a transaction log server over
 * multiple domains.
 */
class TlsStatsFactory : public ITlsStatsFactory
{
    using TransLogServer = search::transactionlog::TransLogServer;
    std::shared_ptr<TransLogServer> _tls;
public:
    TlsStatsFactory(std::shared_ptr<TransLogServer> tls);
    virtual ~TlsStatsFactory();
    virtual TlsStatsMap create() override;
};

}