|
Squid Web Cache v8/master
|
#include <ServiceRep.h>
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 | |
| 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 | |
| bool | handleFinalizeFailure (const char *error) |
| ServiceConfig & | writeableCfg () |
Private Attributes | |
| AdapterService | theService |
| bool | isDetached |
| ServiceConfigPointer | theConfig |
Definition at line 33 of file ServiceRep.h.
| typedef libecap::shared_ptr<libecap::adapter::Service> Adaptation::Ecap::ServiceRep::AdapterService |
Definition at line 39 of file ServiceRep.h.
|
inherited |
|
inherited |
|
explicit |
Definition at line 163 of file ServiceRep.cc.
|
override |
Definition at line 169 of file ServiceRep.cc.
|
virtualinherited |
Definition at line 30 of file Service.cc.
|
inlineinherited |
Definition at line 51 of file Service.h.
References Adaptation::Service::theConfig.
Referenced by Adaptation::Service::Service(), 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::DynamicServiceChain::Split(), and Adaptation::Iterator::step().
|
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.
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 308 of file ServiceRep.cc.
|
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.
|
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().
|
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.
|
overridevirtual |
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 241 of file ServiceRep.cc.
|
virtual |
Definition at line 281 of file ServiceRep.cc.
References MemBuf::append(), MemBuf::content(), MemBuf::reset(), and MemBuf::terminate().
|
protected |
Definition at line 204 of file ServiceRep.cc.
References AsyncServices, DBG_IMPORTANT, and debugs.
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 246 of file ServiceRep.cc.
|
inherited |
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().
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 251 of file ServiceRep.cc.
References SBuf::c_str(), and Must.
|
inlineprotectedinherited |
Definition at line 62 of file Service.h.
References Adaptation::Service::theConfig.
|
private |
Definition at line 58 of file ServiceRep.h.
|
privateinherited |
Definition at line 65 of file Service.h.
Referenced by Adaptation::Service::Service(), Adaptation::Service::cfg(), and Adaptation::Service::writeableCfg().
|
private |
Definition at line 57 of file ServiceRep.h.