#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 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()
|
pure virtual |
called when removed from the config; the service will be auto-destroyed when the last refcounting user leaves
Implemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
◆ detached()
|
pure virtual |
Implemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
◆ finalize()
|
virtual |
Reimplemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::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::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
Referenced by Adaptation::Iterator::step().
◆ noteFailure()
|
pure virtual |
Implemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
◆ probed()
|
pure virtual |
Implemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
Referenced by Adaptation::ServiceGroup::findService().
◆ up()
|
pure virtual |
Implemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
Referenced by Adaptation::ServiceGroup::findService().
◆ wants()
bool Adaptation::Service::wants | ( | const ServiceFilter & | filter | ) | const |
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()
|
pure virtual |
Implemented in Adaptation::Ecap::ServiceRep, and Adaptation::Icap::ServiceRep.
◆ writeableCfg()
|
inlineprotected |
Member Data Documentation
◆ theConfig
|
private |
Definition at line 65 of file Service.h.
Referenced by Service(), cfg(), and writeableCfg().
The documentation for this class was generated from the following files:
- src/adaptation/Service.h
- src/adaptation/Service.cc