#include <ServiceGroups.h>
Public Types | |
typedef RefCount< ServiceGroup > | Pointer |
typedef std::vector< String > | Store |
typedef String | Id |
typedef unsigned int | Pos |
Public Member Functions | |
ServiceGroup (const String &aKind, bool areAllServicesSame) | |
~ServiceGroup () override | |
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... | |
Friends | |
class | ServicePlan |
Detailed Description
Definition at line 24 of file ServiceGroups.h.
Member Typedef Documentation
◆ Id
typedef String Adaptation::ServiceGroup::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 |
Definition at line 31 of file ServiceGroups.h.
◆ Store
Definition at line 29 of file ServiceGroups.h.
Constructor & Destructor Documentation
◆ ServiceGroup()
Adaptation::ServiceGroup::ServiceGroup | ( | const String & | aKind, |
bool | areAllServicesSame | ||
) |
Definition at line 21 of file ServiceGroups.cc.
◆ ~ServiceGroup()
|
override |
Definition at line 27 of file ServiceGroups.cc.
Member Function Documentation
◆ at()
|
private |
Definition at line 127 of file ServiceGroups.cc.
References Adaptation::FindService().
◆ checkUniqueness()
|
private |
Definition at line 101 of file ServiceGroups.cc.
References Adaptation::Service::cfg(), Adaptation::ServiceConfig::key, and Adaptation::ServiceConfig::uri.
◆ finalize()
|
virtual |
Definition at line 45 of file ServiceGroups.cc.
References String::append(), Adaptation::ServiceConfig::bypass, Adaptation::Service::cfg(), String::cut(), DBG_CRITICAL, DBG_IMPORTANT, debugs, Adaptation::ServiceConfig::key, Adaptation::ServiceConfig::method, Adaptation::methodNone, Adaptation::ServiceConfig::point, and String::size().
Referenced by Adaptation::AccessRule::finalize().
◆ finalizeMsg()
|
private |
Definition at line 118 of file ServiceGroups.cc.
References DBG_CRITICAL, DBG_IMPORTANT, debugs, and error().
◆ findLink()
|
protected |
Definition at line 200 of file ServiceGroups.cc.
◆ findReplacement()
|
protected |
find next to try after failure, starting with pos
Definition at line 194 of file ServiceGroups.cc.
◆ findService()
|
private |
Definition at line 141 of file ServiceGroups.cc.
References Adaptation::ServiceConfig::bypass, Adaptation::Service::cfg(), debugs, Adaptation::ServiceFilter::method, Adaptation::ServiceFilter::point, Adaptation::Service::probed(), Adaptation::Service::up(), and Adaptation::Service::wants().
◆ has()
|
inlineprotected |
Definition at line 45 of file ServiceGroups.h.
References services.
Referenced by Adaptation::ServiceChain::advance(), and Adaptation::ServiceSet::replace().
◆ parse()
|
virtual |
Definition at line 32 of file ServiceGroups.cc.
References wordlist::next, ConfigParser::NextToken(), ConfigParser::ParseWordList(), and wordlistDestroy().
Referenced by Adaptation::Config::ParseServiceGroup().
◆ wants()
bool Adaptation::ServiceGroup::wants | ( | const ServiceFilter & | filter | ) | const |
Definition at line 134 of file ServiceGroups.cc.
Referenced by Adaptation::AccessCheck::isCandidate().
Friends And Related Function Documentation
◆ ServicePlan
|
friend |
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.
◆ id
Id Adaptation::ServiceGroup::id |
Definition at line 66 of file ServiceGroups.h.
Referenced by Adaptation::Config::removeService().
◆ kind
String Adaptation::ServiceGroup::kind |
Definition at line 65 of file ServiceGroups.h.
◆ method
Method Adaptation::ServiceGroup::method |
Definition at line 70 of file ServiceGroups.h.
◆ point
VectPoint Adaptation::ServiceGroup::point |
Definition at line 71 of file ServiceGroups.h.
◆ removedServices
Store Adaptation::ServiceGroup::removedServices |
Definition at line 68 of file ServiceGroups.h.
Referenced by Adaptation::Config::removeService().
◆ services
Store Adaptation::ServiceGroup::services |
Definition at line 67 of file ServiceGroups.h.
Referenced by Adaptation::SingleService::SingleService(), has(), and Adaptation::Config::removeService().
The documentation for this class was generated from the following files:
- src/adaptation/ServiceGroups.h
- src/adaptation/ServiceGroups.cc