#include <ServiceGroups.h>

Inheritance diagram for Adaptation::ServiceGroup:
Collaboration diagram for Adaptation::ServiceGroup:

Public Types

typedef RefCount< ServiceGroupPointer
typedef std::vector< StringStore
typedef String Id
typedef unsigned int Pos

Public Member Functions

 ServiceGroup (const String &aKind, bool areAllServicesSame)
virtual ~ServiceGroup ()
virtual void parse ()
virtual void finalize ()
bool wants (const ServiceFilter &filter) const

Public Attributes

String kind
Id id
Store services
Store removedServices
 the disabled services in the case ecap or icap is disabled More...
Method method
VectPoint point
 based on the first added service More...
const bool allServicesSame
 based on the first added service More...

Protected Member Functions

bool has (const Pos pos) const
 < whether this group has a service at the specified pos More...
bool findReplacement (const ServiceFilter &filter, Pos &pos) const
 these methods control group iteration; used by ServicePlan More...
bool findLink (const ServiceFilter &filter, Pos &pos) const
 find next to link after success, starting with pos More...

Private Member Functions

ServicePointer at (const Pos pos) const
bool findService (const ServiceFilter &filter, Pos &pos) const
void checkUniqueness (const Pos checkedPos) const
 checks that the service name or URI is not repeated later in the group More...
void finalizeMsg (const char *msg, const String &culprit, bool error) const
 emits a formatted warning or error message at the appropriate dbg level More...


class ServicePlan

Detailed Description

Definition at line 24 of file ServiceGroups.h.

Member Typedef Documentation

◆ Id

Definition at line 30 of file ServiceGroups.h.

◆ Pointer

◆ Pos

Definition at line 31 of file ServiceGroups.h.

◆ Store

Constructor & Destructor Documentation

◆ ServiceGroup()

Adaptation::ServiceGroup::ServiceGroup ( const String aKind,
bool  areAllServicesSame 

Definition at line 21 of file ServiceGroups.cc.

◆ ~ServiceGroup()

Adaptation::ServiceGroup::~ServiceGroup ( )

Definition at line 27 of file ServiceGroups.cc.

Member Function Documentation

◆ at()

Adaptation::ServicePointer Adaptation::ServiceGroup::at ( const Pos  pos) const

Definition at line 127 of file ServiceGroups.cc.

References Adaptation::FindService(), and services.

Referenced by checkUniqueness(), finalize(), findService(), and has().

◆ checkUniqueness()

void Adaptation::ServiceGroup::checkUniqueness ( const Pos  checkedPos) const

Definition at line 101 of file ServiceGroups.cc.

References at(), finalizeMsg(), has(), NULL, and p.

Referenced by finalize(), and has().

◆ finalize()

◆ finalizeMsg()

void Adaptation::ServiceGroup::finalizeMsg ( const char *  msg,
const String culprit,
bool  error 
) const

Definition at line 118 of file ServiceGroups.cc.

References DBG_CRITICAL, DBG_IMPORTANT, debugs, and kind.

Referenced by checkUniqueness(), finalize(), and has().

◆ findLink()

bool Adaptation::ServiceGroup::findLink ( const ServiceFilter filter,
Pos pos 
) const

Definition at line 200 of file ServiceGroups.cc.

References allServicesSame, and findService().

Referenced by has().

◆ findReplacement()

bool Adaptation::ServiceGroup::findReplacement ( const ServiceFilter filter,
Pos pos 
) const

find next to try after failure, starting with pos

Definition at line 194 of file ServiceGroups.cc.

References allServicesSame, and findService().

Referenced by has().

◆ findService()

bool Adaptation::ServiceGroup::findService ( const ServiceFilter filter,
Pos pos 
) const

◆ has()

bool Adaptation::ServiceGroup::has ( const Pos  pos) const

◆ parse()

void Adaptation::ServiceGroup::parse ( )

◆ wants()

bool Adaptation::ServiceGroup::wants ( const ServiceFilter filter) const
: optimize to cut search short instead of looking for the best svc

Definition at line 134 of file ServiceGroups.cc.

References findService().

Friends And Related Function Documentation

◆ ServicePlan

friend class ServicePlan

Definition at line 32 of file ServiceGroups.h.

Member Data Documentation

◆ allServicesSame

const bool Adaptation::ServiceGroup::allServicesSame

Definition at line 73 of file ServiceGroups.h.

Referenced by finalize(), findLink(), findReplacement(), and findService().

◆ id

Id Adaptation::ServiceGroup::id

Definition at line 66 of file ServiceGroups.h.

Referenced by Adaptation::DynamicServiceChain::Split().

◆ kind

String Adaptation::ServiceGroup::kind

◆ method

Method Adaptation::ServiceGroup::method

◆ point

VectPoint Adaptation::ServiceGroup::point

◆ removedServices

Store Adaptation::ServiceGroup::removedServices

Definition at line 68 of file ServiceGroups.h.

Referenced by finalize().

◆ services

Store Adaptation::ServiceGroup::services

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






Web Site Translations