Kea  1.9.9-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 
15 namespace isc {
16 namespace perfdhcp {
17 
18 
23 class BasicScen : public AbstractScen {
24 public:
30  AbstractScen(options, socket)
31  {
35  };
36 
46  int run() override;
47 
48 protected:
55 
66  bool checkExitConditions();
67 };
68 
69 }
70 }
71 
72 #endif // BASIC_SCEN_H
bool checkExitConditions()
Check if test exit conditions fulfilled.
Definition: basic_scen.cc:25
RateControl renew_rate_control_
A rate control class for Renew messages.
Definition: basic_scen.h:52
A message sending rate control class for perfdhcp.
Definition: rate_control.h:38
Basic Scenario class.
Definition: basic_scen.h:23
void setRate(const int rate)
Sets the new rate.
Definition: rate_control.cc:71
BasicScen(CommandOptions &options, BasePerfSocket &socket)
Default and the only constructor of BasicScen.
Definition: basic_scen.h:29
Defines the logger used by the top-level component of kea-dhcp-ddns.
int getRate() const
Returns exchange rate.
int run() override
brief\ Run performance test.
Definition: basic_scen.cc:126
int getRenewRate() const
Returns a rate at which DHCPv6 Renew messages are sent.
Abstract Scenario class.
Definition: abstract_scen.h:21
RateControl release_rate_control_
A rate control class for Release messages.
Definition: basic_scen.h:54
int getReleaseRate() const
Returns a rate at which DHCPv6 Release messages are sent.
Socket wrapper structure.
Definition: perf_socket.h:26
RateControl basic_rate_control_
A rate control class for Discover and Solicit messages.
Definition: basic_scen.h:50
CommandOptions & options_
Reference to commandline options.
Definition: abstract_scen.h:48