Kea: basic_scen.h Source File

| Kea 3.2.0-git

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
12#include <perfdhcp/abstract_scen.h>
13
14
15namespace isc {
16namespace perfdhcp {
17
18
23 class BasicScen : public AbstractScen {
24public:
29 BasicScen(CommandOptions& options, BasePerfSocket &socket):
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:
50 RateControl basic_rate_control_;
52 RateControl renew_rate_control_;
54 RateControl release_rate_control_;
55
66 bool checkExitConditions();
67};
68
69}
70}
71
72#endif // BASIC_SCEN_H
abstract_scen.h
isc::perfdhcp::AbstractScen::options_
CommandOptions & options_
Reference to commandline options.
Definition abstract_scen.h:51
isc::perfdhcp::AbstractScen::AbstractScen
AbstractScen(CommandOptions &options, BasePerfSocket &socket)
Default and the only constructor of AbstractScen.
Definition abstract_scen.h:27
isc::perfdhcp::BasePerfSocket
Socket wrapper structure.
Definition perf_socket.h:26
isc::perfdhcp::BasicScen::renew_rate_control_
RateControl renew_rate_control_
A rate control class for Renew messages.
Definition basic_scen.h:52
isc::perfdhcp::BasicScen::BasicScen
BasicScen(CommandOptions &options, BasePerfSocket &socket)
Default and the only constructor of BasicScen.
Definition basic_scen.h:29
isc::perfdhcp::BasicScen::run
int run() override
brief\ Run performance test.
Definition basic_scen.cc:125
isc::perfdhcp::BasicScen::checkExitConditions
bool checkExitConditions()
Check if test exit conditions fulfilled.
Definition basic_scen.cc:24
isc::perfdhcp::BasicScen::release_rate_control_
RateControl release_rate_control_
A rate control class for Release messages.
Definition basic_scen.h:54
isc::perfdhcp::BasicScen::basic_rate_control_
RateControl basic_rate_control_
A rate control class for Discover and Solicit messages.
Definition basic_scen.h:50
isc::perfdhcp::CommandOptions
Command Options.
Definition command_options.h:30
isc::perfdhcp::RateControl
A message sending rate control class for perfdhcp.
Definition rate_control.h:38
isc::perfdhcp
Definition abstract_scen.h:15
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18