#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 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 28 of file ServiceRep.h.
Member Typedef Documentation
◆ AdapterService
typedef libecap::shared_ptr<libecap::adapter::Service> Adaptation::Ecap::ServiceRep::AdapterService |
Definition at line 34 of file ServiceRep.h.
◆ Id
|
inherited |
◆ Pointer
|
inherited |
Constructor & Destructor Documentation
◆ ServiceRep()
|
explicit |
Definition at line 154 of file ServiceRep.cc.
◆ ~ServiceRep()
|
override |
Definition at line 160 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::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().
◆ 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 294 of file ServiceRep.cc.
◆ detached()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 299 of file ServiceRep.cc.
◆ finalize()
|
overridevirtual |
Reimplemented from Adaptation::Service.
Definition at line 170 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 213 of file ServiceRep.cc.
References DBG_CRITICAL, DBG_IMPORTANT, debugs, and error().
◆ makeXactLauncher()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 251 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 232 of file ServiceRep.cc.
◆ status()
|
virtual |
Definition at line 272 of file ServiceRep.cc.
References MemBuf::append(), MemBuf::content(), MemBuf::reset(), and MemBuf::terminate().
◆ tryConfigureAndStart()
|
protected |
Definition at line 195 of file ServiceRep.cc.
References AsyncServices, DBG_IMPORTANT, and debugs.
◆ up()
|
overridevirtual |
Implements Adaptation::Service.
Definition at line 237 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 242 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 53 of file ServiceRep.h.
◆ theConfig
|
privateinherited |
Definition at line 65 of file Service.h.
Referenced by Adaptation::Service::Service(), Adaptation::Service::cfg(), and Adaptation::Service::writeableCfg().
◆ theService
|
private |
Definition at line 52 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