#include <ServiceRep.h>
![Inheritance graph](classAdaptation_1_1Ecap_1_1ServiceRep__inherit__graph.png)
![Collaboration graph](classAdaptation_1_1Ecap_1_1ServiceRep__coll__graph.png)
Public Types | |
typedef libecap::shared_ptr< libecap::adapter::Service > | AdapterService |
typedef RefCount< Service > | Pointer |
typedef String | Id |
Public Member Functions | |
ServiceRep (const ServiceConfigPointer &aConfig) | |
~ServiceRep () override | |
void | finalize () override |
bool | probed () const override |
bool | up () const override |
Adaptation::Initiate * | makeXactLauncher (Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override |
bool | wantsUrl (const SBuf &urlPath) const override |
void | noteFailure () override |
virtual const char * | status () const |
void | detach () override |
bool | detached () const override |
whether detached() was called More... | |
virtual bool | broken () const |
bool | wants (const ServiceFilter &filter) const |
const ServiceConfig & | cfg () const |
Protected Member Functions | |
void | tryConfigureAndStart () |
attempts to configure and start eCAP service; the caller handles exceptions More... | |
bool | handleFinalizeFailure (const char *error) |
ServiceConfig & | writeableCfg () |
Private Attributes | |
AdapterService | theService |
bool | isDetached |
ServiceConfigPointer | theConfig |
Detailed Description
Definition at line 33 of file ServiceRep.h.
Member Typedef Documentation
◆ AdapterService
typedef libecap::shared_ptr<libecap::adapter::Service> Adaptation::Ecap::ServiceRep::AdapterService |
Definition at line 39 of file ServiceRep.h.
◆ Id
|
inherited |
◆ Pointer
|
inherited |
Constructor & Destructor Documentation
◆ ServiceRep()
|
explicit |
Definition at line 163 of file ServiceRep.cc.
◆ ~ServiceRep()
|
override |
Definition at line 169 of file ServiceRep.cc.
Member Function Documentation
◆ broken()
|
virtualinherited |
Definition at line 30 of file Service.cc.
◆ cfg()
|
inlineinherited |
Definition at line 51 of file Service.h.
References Adaptation::Service::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(), Adaptation::Service::Service(), Adaptation::DynamicServiceChain::Split(), and Adaptation::Iterator::step().
◆ detach()
|
overridevirtual |
called when removed from the config; the service will be auto-destroyed when the last refcounting user leaves
Implements Adaptation::Service.
Definition at line 303 of file ServiceRep.cc.
◆ detached()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 308 of file ServiceRep.cc.
◆ finalize()
|
overridevirtual |
Reimplemented from Adaptation::Service.
Definition at line 179 of file ServiceRep.cc.
References DBG_IMPORTANT, debugs, Adaptation::Service::finalize(), Adaptation::Ecap::FindAdapterService(), and Must.
◆ handleFinalizeFailure()
|
protected |
handles failures while configuring or starting an eCAP service; returns false if the error must be propagated to higher levels
Definition at line 222 of file ServiceRep.cc.
References DBG_CRITICAL, DBG_IMPORTANT, debugs, and error().
◆ makeXactLauncher()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 260 of file ServiceRep.cc.
References AsyncServices, debugs, Adaptation::Ecap::XactionRep::master(), Must, EventLoop::registerEngine(), and EventLoop::Running.
◆ noteFailure()
|
overridevirtual |
◆ probed()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 241 of file ServiceRep.cc.
◆ status()
|
virtual |
Definition at line 281 of file ServiceRep.cc.
References MemBuf::append(), MemBuf::content(), MemBuf::reset(), and MemBuf::terminate().
◆ tryConfigureAndStart()
|
protected |
Definition at line 204 of file ServiceRep.cc.
References AsyncServices, DBG_IMPORTANT, and debugs.
◆ up()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 246 of file ServiceRep.cc.
◆ wants()
|
inherited |
Definition at line 36 of file Service.cc.
References Adaptation::ServiceFilter::method, AnyP::Uri::path(), Adaptation::ServiceFilter::point, Adaptation::ServiceFilter::request, and HttpRequest::url.
Referenced by Adaptation::ServiceGroup::findService().
◆ wantsUrl()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 251 of file ServiceRep.cc.
References SBuf::c_str(), and Must.
◆ writeableCfg()
|
inlineprotectedinherited |
Definition at line 62 of file Service.h.
References Adaptation::Service::theConfig.
Member Data Documentation
◆ isDetached
|
private |
Definition at line 58 of file ServiceRep.h.
◆ theConfig
|
privateinherited |
Definition at line 65 of file Service.h.
Referenced by Adaptation::Service::cfg(), Adaptation::Service::Service(), and Adaptation::Service::writeableCfg().
◆ theService
|
private |
Definition at line 57 of file ServiceRep.h.
The documentation for this class was generated from the following files:
- src/adaptation/ecap/ServiceRep.h
- src/adaptation/ecap/ServiceRep.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