#include <ModXact.h>

Inheritance diagram for Adaptation::Icap::ModXactLauncher:
Collaboration diagram for Adaptation::Icap::ModXactLauncher:

Public Types

typedef CbcPointer< AsyncJobPointer
 

Public Member Functions

 ModXactLauncher (Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp, Adaptation::ServicePointer s)
 
void noteInitiatorAborted ()
 
virtual void noteAdaptationAnswer (const Answer &answer)
 
virtual void noteXactAbort (XactAbortInfo info)
 
void initiator (const CbcPointer< Initiator > &i)
 sets initiator More...
 
bool canBeCalled (AsyncCall &call) const
 whether we can be called More...
 
void callStart (AsyncCall &call)
 
virtual void callEnd ()
 called right after the called job method More...
 
virtual void callException (const std::exception &e)
 called when the job throws during an async call More...
 
virtual void * toCbdata ()=0
 
virtual void noteAdaptationAclCheckDone (Adaptation::ServiceGroupPointer group)
 

Static Public Member Functions

static Pointer Start (AsyncJob *job)
 starts a freshly created job (i.e., makes the job asynchronous) More...
 

Protected Member Functions

virtual XactioncreateXaction ()
 
virtual void swanSong ()
 
void updateHistory (bool start)
 starts or stops transaction accounting in ICAP history More...
 
virtual void start ()
 called by AsyncStart; do not call directly More...
 
virtual bool doneAll () const
 whether positive goal has been reached More...
 
void launchXaction (const char *xkind)
 
void sendAnswer (const Answer &answer)
 
void tellQueryAborted (bool final)
 
void clearInitiator ()
 
virtual const char * status () const
 internal cleanup; do not call directly More...
 
void deleteThis (const char *aReason)
 
void mustStop (const char *aReason)
 
bool done () const
 the job is destroyed in callEnd() when done() More...
 
CbcPointer< InitiateinitiateAdaptation (Initiate *x)
 < starts freshly created initiate and returns a safe pointer to it More...
 
void clearAdaptation (CbcPointer< Initiate > &x)
 clears the pointer (does not call announceInitiatorAbort) More...
 
void announceInitiatorAbort (CbcPointer< Initiate > &x)
 inform the transaction about abnormal termination and clear the pointer More...
 
bool initiated (const CbcPointer< AsyncJob > &job) const
 Must(initiated(initiate)) instead of Must(initiate.set()), for clarity. More...
 

Protected Attributes

InOut virgin
 
AccessLogEntry::Pointer al
 
Adaptation::ServicePointer theService
 ICAP service for all launches. More...
 
CbcPointer< InitiatetheXaction
 current ICAP transaction More...
 
int theLaunches
 
CbcPointer< InitiatortheInitiator
 
const char * stopReason
 reason for forcing done() to be true More...
 
const char * typeName
 kid (leaf) class name, for debugging More...
 
AsyncCall::Pointer inCall
 the asynchronous call being handled, if any More...
 
const InstanceId< AsyncJobid
 job identifier More...
 

Private Member Functions

 CBDATA_CLASS (ModXactLauncher)
 

Detailed Description

Definition at line 357 of file ModXact.h.

Member Typedef Documentation

Definition at line 34 of file AsyncJob.h.

Constructor & Destructor Documentation

Adaptation::Icap::ModXactLauncher::ModXactLauncher ( Http::Message virginHeader,
HttpRequest virginCause,
AccessLogEntry::Pointer alp,
Adaptation::ServicePointer  s 
)

Member Function Documentation

void Adaptation::Initiator::announceInitiatorAbort ( CbcPointer< Initiate > &  x)
protectedinherited

Definition at line 38 of file Initiator.cc.

References CallJobHere.

Referenced by Client::cleanAdaptation(), and ClientHttpRequest::~ClientHttpRequest().

void AsyncJob::callEnd ( )
virtualinherited
void AsyncJob::callStart ( AsyncCall call)
inherited
bool AsyncJob::canBeCalled ( AsyncCall call) const
inherited

Definition at line 101 of file AsyncJob.cc.

References AsyncCall::cancel(), debugs, HERE(), AsyncJob::inCall, and NULL.

Adaptation::Icap::ModXactLauncher::CBDATA_CLASS ( ModXactLauncher  )
private
void Adaptation::Initiator::clearAdaptation ( CbcPointer< Initiate > &  x)
protectedinherited
void Adaptation::Initiate::clearInitiator ( )
protectedinherited

Definition at line 74 of file Initiate.cc.

Adaptation::Icap::Xaction * Adaptation::Icap::ModXactLauncher::createXaction ( )
protectedvirtual

Implements Adaptation::Icap::Launcher.

Definition at line 2034 of file ModXact.cc.

References Must, and NULL.

void AsyncJob::deleteThis ( const char *  aReason)
protectedinherited
bool AsyncJob::done ( ) const
protectedinherited

Definition at line 90 of file AsyncJob.cc.

References AsyncJob::doneAll(), NULL, and AsyncJob::stopReason.

Referenced by AsyncJob::callEnd(), and Downloader::downloadFinished().

bool Adaptation::Icap::Launcher::doneAll ( ) const
protectedvirtualinherited

Reimplemented from AsyncJob.

Definition at line 100 of file Launcher.cc.

References AsyncJob::doneAll().

CbcPointer< Adaptation::Initiate > Adaptation::Initiator::initiateAdaptation ( Initiate x)
protectedinherited
bool Adaptation::Initiator::initiated ( const CbcPointer< AsyncJob > &  job) const
inlineprotectedinherited

Definition at line 52 of file Initiator.h.

References CbcPointer< Cbc >::set().

Referenced by Client::startAdaptation(), and ClientHttpRequest::startAdaptation().

void Adaptation::Initiate::initiator ( const CbcPointer< Initiator > &  i)
inherited

Definition at line 54 of file Initiate.cc.

References i, Must, and CbcPointer< Cbc >::valid().

Referenced by Adaptation::Initiator::initiateAdaptation().

void Adaptation::Initiator::noteAdaptationAclCheckDone ( Adaptation::ServiceGroupPointer  group)
virtualinherited

AccessCheck calls this back with a possibly nil service group to signal whether adaptation is needed and where it should start.

Reimplemented in ClientHttpRequest, and Client.

Definition at line 17 of file Initiator.cc.

References Must.

void Adaptation::Icap::Launcher::noteAdaptationAnswer ( const Answer answer)
virtualinherited

called with the initial adaptation decision (adapt, block, error); virgin and/or adapted body transmission may continue after this

Implements Adaptation::Initiator.

Definition at line 60 of file Launcher.cc.

References Adaptation::Answer::akError, debugs, HERE(), Adaptation::Answer::kind, and Must.

void Adaptation::Icap::Launcher::noteInitiatorAborted ( )
virtualinherited

Implements Adaptation::Initiate.

Definition at line 72 of file Launcher.cc.

References Must.

void Adaptation::Icap::Launcher::noteXactAbort ( XactAbortInfo  info)
virtualinherited

Definition at line 81 of file Launcher.cc.

References debugs, HERE(), and Must.

void Adaptation::Initiate::sendAnswer ( const Answer answer)
protectedinherited

Definition at line 79 of file Initiate.cc.

References Adaptation::Initiator::noteAdaptationAnswer(), and ScheduleCallHere.

void Adaptation::Icap::Launcher::start ( )
protectedvirtualinherited

Reimplemented from AsyncJob.

Definition at line 35 of file Launcher.cc.

References Must, and AsyncJob::start().

const char * Adaptation::Initiate::status ( ) const
protectedvirtualinherited

for debugging, starts with space

Reimplemented from AsyncJob.

Reimplemented in Adaptation::Icap::Xaction, and Adaptation::Ecap::XactionRep.

Definition at line 92 of file Initiate.cc.

References AsyncJob::status().

void Adaptation::Icap::ModXactLauncher::swanSong ( )
protectedvirtual

Reimplemented from Adaptation::Icap::Launcher.

Definition at line 2042 of file ModXact.cc.

References debugs, HERE(), and Adaptation::Icap::Launcher::swanSong().

void Adaptation::Initiate::tellQueryAborted ( bool  final)
protectedinherited

Definition at line 87 of file Initiate.cc.

References Adaptation::Answer::Error().

virtual void* CbdataParent::toCbdata ( )
pure virtualinherited
void Adaptation::Icap::ModXactLauncher::updateHistory ( bool  start)
protected

Member Data Documentation

AccessLogEntry::Pointer Adaptation::Icap::ModXactLauncher::al
protected

Definition at line 374 of file ModXact.h.

const InstanceId<AsyncJob> AsyncJob::id
protectedinherited

Definition at line 70 of file AsyncJob.h.

AsyncCall::Pointer AsyncJob::inCall
protectedinherited
const char* AsyncJob::stopReason
protectedinherited
CbcPointer<Initiator> Adaptation::Initiate::theInitiator
protectedinherited

Definition at line 51 of file Initiate.h.

int Adaptation::Icap::Launcher::theLaunches
protectedinherited

Definition at line 77 of file Launcher.h.

Adaptation::ServicePointer Adaptation::Icap::Launcher::theService
protectedinherited

Definition at line 75 of file Launcher.h.

CbcPointer<Initiate> Adaptation::Icap::Launcher::theXaction
protectedinherited

Definition at line 76 of file Launcher.h.

InOut Adaptation::Icap::ModXactLauncher::virgin
protected

Definition at line 372 of file ModXact.h.

Referenced by ModXactLauncher().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors