Kea 2.5.8
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 {
35 };
36
46 int run() override;
47
48protected:
55
67};
68
69}
70}
71
72#endif // BASIC_SCEN_H
Abstract Scenario class.
Definition: abstract_scen.h:21
CommandOptions & options_
Reference to commandline options.
Definition: abstract_scen.h:51
Socket wrapper structure.
Definition: perf_socket.h:26
Basic Scenario class.
Definition: basic_scen.h:23
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.
Definition: basic_scen.cc:125
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
int getRenewRate() const
Returns a rate at which DHCPv6 Renew messages are sent.
int getRate() const
Returns exchange rate.
int getReleaseRate() const
Returns a rate at which DHCPv6 Release messages are sent.
A message sending rate control class for perfdhcp.
Definition: rate_control.h:38
void setRate(const int rate)
Sets the new rate.
Definition: rate_control.cc:71
Defines the logger used by the top-level component of kea-lfc.