Kea 3.1.1
basic_scen.h
Go to the documentation of this file.
1// Copyright (C) 2012-2019 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef BASIC_SCEN_H
8#define BASIC_SCEN_H
9
10#include <config.h>
11
13
14
15namespace isc {
16namespace perfdhcp {
17
18
23class BasicScen : public AbstractScen {
24public:
30 AbstractScen(options, socket)
31 {
32 basic_rate_control_.setRate(options_.getRate());
33 renew_rate_control_.setRate(options_.getRenewRate());
34 release_rate_control_.setRate(options_.getReleaseRate());
35 };
36
46 int run() override;
47
48protected:
55
67};
68
69}
70}
71
72#endif // BASIC_SCEN_H
CommandOptions & options_
Reference to commandline options.
AbstractScen(CommandOptions &options, BasePerfSocket &socket)
Default and the only constructor of AbstractScen.
Socket wrapper structure.
Definition perf_socket.h:26
RateControl renew_rate_control_
A rate control class for Renew messages.
Definition basic_scen.h:52
BasicScen(CommandOptions &options, BasePerfSocket &socket)
Default and the only constructor of BasicScen.
Definition basic_scen.h:29
int run() override
brief\ Run performance test.
bool checkExitConditions()
Check if test exit conditions fulfilled.
Definition basic_scen.cc:24
RateControl release_rate_control_
A rate control class for Release messages.
Definition basic_scen.h:54
RateControl basic_rate_control_
A rate control class for Discover and Solicit messages.
Definition basic_scen.h:50
A message sending rate control class for perfdhcp.
Defines the logger used by the top-level component of kea-lfc.