#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)
 
virtual ~ServiceRep ()
 
virtual void finalize ()
 
virtual bool probed () const
 
virtual bool up () const
 
virtual Adaptation::InitiatemakeXactLauncher (Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp)
 
virtual bool wantsUrl (const SBuf &urlPath) const
 
virtual void noteFailure ()
 
virtual const char * status () const
 
virtual void detach ()
 
virtual bool detached () const
 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
 

Detailed Description

Definition at line 28 of file ServiceRep.h.

Member Typedef Documentation

typedef libecap::shared_ptr<libecap::adapter::Service> Adaptation::Ecap::ServiceRep::AdapterService

Definition at line 34 of file ServiceRep.h.

typedef String Adaptation::Service::Id
inherited

Definition at line 31 of file Service.h.

Definition at line 30 of file Service.h.

Constructor & Destructor Documentation

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

Definition at line 154 of file ServiceRep.cc.

Adaptation::Ecap::ServiceRep::~ServiceRep ( )
virtual

Definition at line 160 of file ServiceRep.cc.

Member Function Documentation

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

Definition at line 30 of file Service.cc.

void Adaptation::Ecap::ServiceRep::detach ( )
virtual

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.

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

Implements Adaptation::Service.

Definition at line 299 of file ServiceRep.cc.

void Adaptation::Ecap::ServiceRep::finalize ( )
virtual
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, and debugs.

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

Implements Adaptation::Service.

Definition at line 164 of file ServiceRep.cc.

References assert.

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

Implements Adaptation::Service.

Definition at line 232 of file ServiceRep.cc.

const char * Adaptation::Ecap::ServiceRep::status ( ) const
virtual
void Adaptation::Ecap::ServiceRep::tryConfigureAndStart ( )
protected

Definition at line 195 of file ServiceRep.cc.

References AsyncServices, DBG_IMPORTANT, debugs, and HERE().

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

Implements Adaptation::Service.

Definition at line 237 of file ServiceRep.cc.

bool Adaptation::Service::wants ( const ServiceFilter filter) const
inherited
bool Adaptation::Ecap::ServiceRep::wantsUrl ( const SBuf urlPath) const
virtual

Implements Adaptation::Service.

Definition at line 242 of file ServiceRep.cc.

References SBuf::c_str(), and Must.

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

Definition at line 62 of file Service.h.

References Adaptation::Service::theConfig.

Member Data Documentation

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

Definition at line 53 of file ServiceRep.h.

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