Kea 2.5.8
isc::perfdhcp::AbstractScen Class Referenceabstract

Abstract Scenario class. More...

#include <abstract_scen.h>

+ Inheritance diagram for isc::perfdhcp::AbstractScen:

Public Member Functions

 AbstractScen (CommandOptions &options, BasePerfSocket &socket)
 Default and the only constructor of AbstractScen.
 
virtual ~AbstractScen ()
 Trivial virtual destructor.
 
virtual int run ()=0
 Run performance test.
 

Protected Attributes

CommandOptionsoptions_
 Reference to commandline options.
 
ExchangeType stage1_xchg_
 
ExchangeType stage2_xchg_
 
TestControl tc_
 Object for controlling sending and receiving packets.
 

Detailed Description

Abstract Scenario class.

This class must be inherited by scenario classes.

Definition at line 21 of file abstract_scen.h.

Constructor & Destructor Documentation

◆ AbstractScen()

isc::perfdhcp::AbstractScen::AbstractScen ( CommandOptions options,
BasePerfSocket socket 
)
inline

Default and the only constructor of AbstractScen.

Parameters
optionsreference to command options,
socketreference to a socket.

Definition at line 27 of file abstract_scen.h.

References isc::perfdhcp::DO, isc::perfdhcp::CommandOptions::getIpVersion(), options_, isc::perfdhcp::RA, isc::perfdhcp::RR, isc::perfdhcp::SA, stage1_xchg_, and stage2_xchg_.

+ Here is the call graph for this function:

◆ ~AbstractScen()

virtual isc::perfdhcp::AbstractScen::~AbstractScen ( )
inlinevirtual

Trivial virtual destructor.

Definition at line 48 of file abstract_scen.h.

Member Function Documentation

◆ run()

virtual int isc::perfdhcp::AbstractScen::run ( )
pure virtual

Run performance test.

Method runs whole performance test.

Returns
execution status.

Implemented in isc::perfdhcp::AvalancheScen, and isc::perfdhcp::BasicScen.

Member Data Documentation

◆ options_

◆ stage1_xchg_

ExchangeType isc::perfdhcp::AbstractScen::stage1_xchg_
protected

◆ stage2_xchg_

ExchangeType isc::perfdhcp::AbstractScen::stage2_xchg_
protected

◆ tc_

TestControl isc::perfdhcp::AbstractScen::tc_
protected

The documentation for this class was generated from the following file: