aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/heart_beat_job.cpp
blob: 4a738f0a60970b580eda82d7c60e41201bc09066 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "heart_beat_job.h"

namespace proton {

HeartBeatJob::HeartBeatJob(IHeartBeatHandler &handler,
                           const DocumentDBHeartBeatConfig &config)
    : IMaintenanceJob("heart_beat", config.getInterval(), config.getInterval()),
      _handler(handler)
{
}

bool
HeartBeatJob::run()
{
    _handler.heartBeat();
    return true;
}

} // namespace proton