ServiceRep.cc
Go to the documentation of this file.
316Adaptation::Ecap::RegisterAdapterService(const Adaptation::Ecap::ServiceRep::AdapterService& adapterService)
void error(char *format,...)
wraps Adaptation::Ecap::ServiceConfig to allow eCAP visitors
Definition: ServiceRep.cc:42
void visitEachOption(libecap::NamedValueVisitor &visitor) const override
Definition: ServiceRep.cc:94
Adaptation::Ecap::ServiceConfig Master
Definition: ServiceRep.cc:44
const libecap::Area option(const libecap::Name &name) const override
Definition: ServiceRep.cc:76
void kickAsyncServices(timeval &timeout)
resumes async transactions (if any) and returns true if they set a timeout
Definition: ServiceRep.cc:132
int checkEvents(int timeout) override
Definition: ServiceRep.cc:108
ServiceRep(const ServiceConfigPointer &aConfig)
Definition: ServiceRep.cc:154
void tryConfigureAndStart()
attempts to configure and start eCAP service; the caller handles exceptions
Definition: ServiceRep.cc:195
bool wantsUrl(const SBuf &urlPath) const override
Definition: ServiceRep.cc:242
Adaptation::Initiate * makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override
Definition: ServiceRep.cc:251
bool handleFinalizeFailure(const char *error)
Definition: ServiceRep.cc:213
virtual const char * status() const
Definition: ServiceRep.cc:272
libecap::shared_ptr< libecap::adapter::Service > AdapterService
Definition: ServiceRep.h:34
Definition: XactionRep.h:34
void master(const AdapterXaction &aMaster)
Definition: XactionRep.cc:72
libecap::shared_ptr< libecap::adapter::Xaction > AdapterXaction
Definition: XactionRep.h:41
Definition: Initiate.h:31
Definition: Service.h:28
Definition: AsyncEngine.h:19
Definition: HttpRequest.h:49
Definition: MemBuf.h:24
Definition: SquidString.h:26
std::map< std::string, Adaptation::Ecap::ServiceRep::AdapterService > AdapterServices
libecap::adapter::services indexed by their URI
Definition: ServiceRep.cc:29
static AdapterServices AsyncServices
configured services producing async transactions
Definition: ServiceRep.cc:33
void RegisterAdapterService(const ServiceRep::AdapterService &adapterService)
register loaded eCAP module service
Definition: ServiceRep.cc:316
void CheckUnusedAdapterServices(const Services &services)
check for loaded eCAP services without matching ecap_service in squid.conf
Definition: ServiceRep.cc:335
ServiceRep::AdapterService FindAdapterService(const String &serviceUri)
returns loaded eCAP module service by service uri
Definition: ServiceRep.cc:305
void UnregisterAdapterService(const String &serviceUri)
unregister loaded eCAP module service by service uri
Definition: ServiceRep.cc:324
Definition: AccessCheck.h:25