Kea  1.9.9-git
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. More...
 
virtual ~AbstractScen ()
 Trivial virtual destructor. More...
 
virtual int run ()=0
 Run performance test. More...
 

Protected Attributes

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

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

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:

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

Trivial virtual destructor.

Definition at line 48 of file abstract_scen.h.

Member Function Documentation

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

CommandOptions& isc::perfdhcp::AbstractScen::options_
protected

Reference to commandline options.

Definition at line 48 of file abstract_scen.h.

Referenced by AbstractScen(), and isc::perfdhcp::BasicScen::BasicScen().

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

Definition at line 56 of file abstract_scen.h.

Referenced by AbstractScen().

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

Definition at line 57 of file abstract_scen.h.

Referenced by AbstractScen().

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

Object for controlling sending and receiving packets.

Definition at line 52 of file abstract_scen.h.


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