#include <Service.h>


| Public Types | |
| typedef RefCount< Service > | Pointer | 
| typedef String | Id | 
| Public Member Functions | |
| Service (const ServiceConfigPointer &aConfig) | |
| ~Service () override | |
| virtual bool | probed () const =0 | 
| virtual bool | broken () const | 
| virtual bool | up () const =0 | 
| virtual Initiate * | makeXactLauncher (Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp)=0 | 
| bool | wants (const ServiceFilter &filter) const | 
| virtual bool | wantsUrl (const SBuf &urlPath) const =0 | 
| virtual void | noteFailure ()=0 | 
| const ServiceConfig & | cfg () const | 
| virtual void | finalize () | 
| virtual void | detach ()=0 | 
| virtual bool | detached () const =0 | 
| whether detached() was called  More... | |
| Protected Member Functions | |
| ServiceConfig & | writeableCfg () | 
| Private Attributes | |
| ServiceConfigPointer | theConfig | 
Detailed Description
Member Typedef Documentation
◆ Id
| typedef String Adaptation::Service::Id | 
◆ Pointer
| typedef RefCount<Service> Adaptation::Service::Pointer | 
Constructor & Destructor Documentation
◆ Service()
| 
 | explicit | 
◆ ~Service()
| 
 | override | 
Definition at line 22 of file Service.cc.
Member Function Documentation
◆ broken()
| 
 | virtual | 
Definition at line 30 of file Service.cc.
◆ cfg()
| 
 | inline | 
Definition at line 51 of file Service.h.
References theConfig.
Referenced by Adaptation::ServiceGroup::checkUniqueness(), Adaptation::Icap::Xaction::dnsLookupDone(), Adaptation::ServiceGroup::finalize(), Adaptation::Icap::Xaction::finalizeLogInfo(), Adaptation::Icap::ModXact::finalizeLogInfo(), Adaptation::ServiceGroup::findService(), Adaptation::Icap::OptXact::makeRequest(), Adaptation::Icap::Xaction::openConnection(), Service(), Adaptation::DynamicServiceChain::Split(), and Adaptation::Iterator::step().
◆ detach()
| 
 | pure virtual | 
called when removed from the config; the service will be auto-destroyed when the last refcounting user leaves
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
◆ detached()
| 
 | pure virtual | 
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
◆ finalize()
| 
 | virtual | 
Reimplemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
Definition at line 26 of file Service.cc.
Referenced by Adaptation::Ecap::ServiceRep::finalize(), and Adaptation::Icap::ServiceRep::finalize().
◆ makeXactLauncher()
| 
 | pure virtual | 
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
Referenced by Adaptation::Iterator::step().
◆ noteFailure()
| 
 | pure virtual | 
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
◆ probed()
| 
 | pure virtual | 
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
Referenced by Adaptation::ServiceGroup::findService().
◆ up()
| 
 | pure virtual | 
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
Referenced by Adaptation::ServiceGroup::findService().
◆ wants()
| bool Adaptation::Service::wants | ( | const ServiceFilter & | filter | ) | const | 
Definition at line 36 of file Service.cc.
References AnyP::Uri::absolutePath(), Adaptation::ServiceFilter::method, Adaptation::ServiceFilter::point, Adaptation::ServiceFilter::request, and HttpRequest::url.
Referenced by Adaptation::ServiceGroup::findService().
◆ wantsUrl()
| 
 | pure virtual | 
Implemented in Adaptation::Icap::ServiceRep, and Adaptation::Ecap::ServiceRep.
◆ writeableCfg()
| 
 | inlineprotected | 
Member Data Documentation
◆ theConfig
| 
 | private | 
Definition at line 65 of file Service.h.
Referenced by cfg(), Service(), and writeableCfg().
The documentation for this class was generated from the following files:
- src/adaptation/Service.h
- src/adaptation/Service.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
