a temporary service chain built upon another service request More...

#include <ServiceGroups.h>

Inheritance diagram for Adaptation::DynamicServiceChain:
Collaboration diagram for Adaptation::DynamicServiceChain:

Public Types

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

Public Member Functions

 DynamicServiceChain (const DynamicGroupCfg &cfg, const ServiceFilter &f)
 
virtual void parse ()
 
virtual void finalize ()
 
bool wants (const ServiceFilter &filter) const
 

Static Public Member Functions

static void Split (const ServiceFilter &filter, const String &ids, DynamicGroupCfg &current, DynamicGroupCfg &future)
 separates dynamic services matching current location from future ones More...
 

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

virtual bool replace (Pos &) const
 
virtual bool advance (Pos &pos) const
 
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...
 

Detailed Description

Definition at line 110 of file ServiceGroups.h.

Member Typedef Documentation

◆ Id

Definition at line 30 of file ServiceGroups.h.

◆ Pointer

Definition at line 27 of file ServiceGroups.h.

◆ Pos

typedef unsigned int Adaptation::ServiceGroup::Pos
inherited

Definition at line 31 of file ServiceGroups.h.

◆ Store

Definition at line 29 of file ServiceGroups.h.

Constructor & Destructor Documentation

◆ DynamicServiceChain()

Adaptation::DynamicServiceChain::DynamicServiceChain ( const DynamicGroupCfg cfg,
const ServiceFilter f 
)

Member Function Documentation

◆ advance()

virtual bool Adaptation::ServiceChain::advance ( Pos pos) const
inlineprotectedvirtualinherited

Definition at line 106 of file ServiceGroups.h.

References Adaptation::ServiceGroup::has().

◆ at()

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

Definition at line 127 of file ServiceGroups.cc.

References Adaptation::FindService().

◆ checkUniqueness()

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

◆ finalize()

◆ finalizeMsg()

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

Definition at line 118 of file ServiceGroups.cc.

References DBG_CRITICAL, DBG_IMPORTANT, debugs, and error().

◆ findLink()

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

Definition at line 200 of file ServiceGroups.cc.

◆ findReplacement()

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

find next to try after failure, starting with pos

Definition at line 194 of file ServiceGroups.cc.

◆ findService()

◆ has()

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

◆ parse()

void Adaptation::ServiceGroup::parse ( )
virtualinherited

◆ replace()

virtual bool Adaptation::ServiceChain::replace ( Pos ) const
inlineprotectedvirtualinherited

Definition at line 105 of file ServiceGroups.h.

◆ Split()

◆ wants()

bool Adaptation::ServiceGroup::wants ( const ServiceFilter filter) const
inherited

Definition at line 134 of file ServiceGroups.cc.

Referenced by Adaptation::AccessCheck::isCandidate().

Member Data Documentation

◆ allServicesSame

const bool Adaptation::ServiceGroup::allServicesSame
inherited

Definition at line 73 of file ServiceGroups.h.

◆ id

Id Adaptation::ServiceGroup::id
inherited

Definition at line 66 of file ServiceGroups.h.

Referenced by Adaptation::Config::removeService().

◆ kind

String Adaptation::ServiceGroup::kind
inherited

Definition at line 65 of file ServiceGroups.h.

◆ method

Method Adaptation::ServiceGroup::method
inherited

Definition at line 70 of file ServiceGroups.h.

◆ point

VectPoint Adaptation::ServiceGroup::point
inherited

Definition at line 71 of file ServiceGroups.h.

◆ removedServices

Store Adaptation::ServiceGroup::removedServices
inherited

Definition at line 68 of file ServiceGroups.h.

Referenced by Adaptation::Config::removeService().

◆ services

Store Adaptation::ServiceGroup::services
inherited

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors