#include <ServiceGroups.h>


| Public Types | |
| typedef RefCount< ServiceGroup > | Pointer | 
| typedef std::vector< String > | Store | 
| typedef String | Id | 
| typedef unsigned int | Pos | 
| Public Member Functions | |
| ServiceSet () | |
| 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 | |
| virtual bool | replace (Pos &pos) const | 
| virtual bool | advance (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 77 of file ServiceGroups.h.
Member Typedef Documentation
◆ Id
| 
 | inherited | 
Definition at line 30 of file ServiceGroups.h.
◆ Pointer
| 
 | inherited | 
Definition at line 27 of file ServiceGroups.h.
◆ Pos
| 
 | inherited | 
Definition at line 31 of file ServiceGroups.h.
◆ Store
| 
 | inherited | 
Definition at line 29 of file ServiceGroups.h.
Constructor & Destructor Documentation
◆ ServiceSet()
| Adaptation::ServiceSet::ServiceSet | ( | ) | 
Definition at line 207 of file ServiceGroups.cc.
Member Function Documentation
◆ advance()
| 
 | inlineprotectedvirtual | 
Definition at line 84 of file ServiceGroups.h.
◆ at()
| 
 | privateinherited | 
Definition at line 127 of file ServiceGroups.cc.
References Adaptation::FindService().
◆ checkUniqueness()
| 
 | privateinherited | 
Definition at line 101 of file ServiceGroups.cc.
References Adaptation::Service::cfg(), Adaptation::ServiceConfig::key, and Adaptation::ServiceConfig::uri.
◆ finalize()
| 
 | virtualinherited | 
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()
| 
 | privateinherited | 
Definition at line 118 of file ServiceGroups.cc.
References DBG_CRITICAL, DBG_IMPORTANT, debugs, and error().
◆ findLink()
| 
 | protectedinherited | 
Definition at line 200 of file ServiceGroups.cc.
◆ findReplacement()
| 
 | protectedinherited | 
find next to try after failure, starting with pos
Definition at line 194 of file ServiceGroups.cc.
◆ findService()
| 
 | privateinherited | 
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()
| 
 | inlineprotectedinherited | 
Definition at line 45 of file ServiceGroups.h.
References Adaptation::ServiceGroup::services.
Referenced by Adaptation::ServiceChain::advance(), and replace().
◆ parse()
| 
 | virtualinherited | 
Definition at line 32 of file ServiceGroups.cc.
References wordlist::next, ConfigParser::NextToken(), ConfigParser::ParseWordList(), and wordlistDestroy().
Referenced by Adaptation::Config::ParseServiceGroup().
◆ replace()
| 
 | inlineprotectedvirtual | 
Definition at line 83 of file ServiceGroups.h.
References Adaptation::ServiceGroup::has().
◆ wants()
| 
 | inherited | 
Definition at line 134 of file ServiceGroups.cc.
Referenced by Adaptation::AccessCheck::isCandidate().
Member Data Documentation
◆ allServicesSame
| 
 | inherited | 
Definition at line 73 of file ServiceGroups.h.
◆ id
| 
 | inherited | 
Definition at line 66 of file ServiceGroups.h.
Referenced by Adaptation::Config::removeService().
◆ kind
| 
 | inherited | 
Definition at line 65 of file ServiceGroups.h.
◆ method
| 
 | inherited | 
Definition at line 70 of file ServiceGroups.h.
◆ point
| 
 | inherited | 
Definition at line 71 of file ServiceGroups.h.
◆ removedServices
| 
 | inherited | 
Definition at line 68 of file ServiceGroups.h.
Referenced by Adaptation::Config::removeService().
◆ services
| 
 | inherited | 
Definition at line 67 of file ServiceGroups.h.
Referenced by Adaptation::ServiceGroup::has(), Adaptation::Config::removeService(), and Adaptation::SingleService::SingleService().
The documentation for this class was generated from the following files:
- src/adaptation/ServiceGroups.h
- src/adaptation/ServiceGroups.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
