#include <ServiceRep.h>

Inheritance diagram for Adaptation::Ecap::ServiceRep:
Collaboration diagram for Adaptation::Ecap::ServiceRep:

Public Types

typedef libecap::shared_ptr< libecap::adapter::Service > AdapterService
 
typedef RefCount< ServicePointer
 
typedef String Id
 

Public Member Functions

 ServiceRep (const ServiceConfigPointer &aConfig)
 
 ~ServiceRep () override
 
void finalize () override
 
bool probed () const override
 
bool up () const override
 
Adaptation::InitiatemakeXactLauncher (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 ServiceConfigcfg () const
 

Protected Member Functions

void tryConfigureAndStart ()
 attempts to configure and start eCAP service; the caller handles exceptions More...
 
bool handleFinalizeFailure (const char *error)
 
ServiceConfigwriteableCfg ()
 

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

typedef String Adaptation::Service::Id
inherited

Definition at line 31 of file Service.h.

◆ Pointer

Definition at line 30 of file Service.h.

Constructor & Destructor Documentation

◆ ServiceRep()

Adaptation::Ecap::ServiceRep::ServiceRep ( const ServiceConfigPointer aConfig)
explicit

Definition at line 154 of file ServiceRep.cc.

◆ ~ServiceRep()

Adaptation::Ecap::ServiceRep::~ServiceRep ( )
override

Definition at line 160 of file ServiceRep.cc.

Member Function Documentation

◆ broken()

bool Adaptation::Service::broken ( ) const
virtualinherited

Definition at line 30 of file Service.cc.

◆ cfg()

◆ detach()

void Adaptation::Ecap::ServiceRep::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()

bool Adaptation::Ecap::ServiceRep::detached ( ) const
overridevirtual

Implements Adaptation::Service.

Definition at line 299 of file ServiceRep.cc.

◆ finalize()

void Adaptation::Ecap::ServiceRep::finalize ( )
overridevirtual

◆ handleFinalizeFailure()

bool Adaptation::Ecap::ServiceRep::handleFinalizeFailure ( const char *  error)
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()

Adaptation::Initiate * Adaptation::Ecap::ServiceRep::makeXactLauncher ( Http::Message virginHeader,
HttpRequest virginCause,
AccessLogEntry::Pointer alp 
)
overridevirtual

◆ noteFailure()

void Adaptation::Ecap::ServiceRep::noteFailure ( )
overridevirtual

Implements Adaptation::Service.

Definition at line 164 of file ServiceRep.cc.

References assert.

◆ probed()

bool Adaptation::Ecap::ServiceRep::probed ( ) const
overridevirtual

Implements Adaptation::Service.

Definition at line 232 of file ServiceRep.cc.

◆ status()

const char * Adaptation::Ecap::ServiceRep::status ( ) const
virtual

◆ tryConfigureAndStart()

void Adaptation::Ecap::ServiceRep::tryConfigureAndStart ( )
protected

Definition at line 195 of file ServiceRep.cc.

References AsyncServices, DBG_IMPORTANT, and debugs.

◆ up()

bool Adaptation::Ecap::ServiceRep::up ( ) const
overridevirtual

Implements Adaptation::Service.

Definition at line 237 of file ServiceRep.cc.

◆ wants()

bool Adaptation::Service::wants ( const ServiceFilter filter) const
inherited

◆ wantsUrl()

bool Adaptation::Ecap::ServiceRep::wantsUrl ( const SBuf urlPath) const
overridevirtual

Implements Adaptation::Service.

Definition at line 242 of file ServiceRep.cc.

References SBuf::c_str(), and Must.

◆ writeableCfg()

ServiceConfig & Adaptation::Service::writeableCfg ( )
inlineprotectedinherited

Definition at line 62 of file Service.h.

References Adaptation::Service::theConfig.

Member Data Documentation

◆ isDetached

bool Adaptation::Ecap::ServiceRep::isDetached
private

Definition at line 53 of file ServiceRep.h.

◆ theConfig

ServiceConfigPointer Adaptation::Service::theConfig
privateinherited

◆ theService

AdapterService Adaptation::Ecap::ServiceRep::theService
private

Definition at line 52 of file ServiceRep.h.


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors