9#ifndef SQUID_SRC_ADAPTATION_ITERATOR_H
10#define SQUID_SRC_ADAPTATION_ITERATOR_H
49 void start()
override;
summarizes adaptation service answer for the noteAdaptationAnswer() API
iterates services in ServiceGroup, starting adaptation launchers
void start() override
called by AsyncStart; do not call directly
ServicePlan thePlan
which services to use and in what order
void step()
launches adaptation for the service selected by the plan
int iterations
number of steps initiated
ServiceGroupPointer theGroup
the service group we are iterating
AccessLogEntryPointer al
info for the future access.log entry
ServiceFilter filter() const
creates service filter for the current step
bool updatePlan(bool adopt)
replace the current group and plan with service-proposed ones if needed
void handleAdaptedHeader(Http::Message *msg)
bool adapted
whether the virgin message has been replaced
void noteAdaptationAnswer(const Answer &answer) override
void handleAdaptationError(bool final)
HttpRequest * theCause
the cause of the original virgin message
Http::Message * theMsg
the message being adapted (virgin for each step)
void handleAdaptationBlock(const Answer &answer)
CbcPointer< Adaptation::Initiate > theLauncher
current transaction launcher
bool doneAll() const override
whether positive goal has been reached
void noteInitiatorAborted() override
information used to search for adaptation services
common parts of HttpRequest and HttpReply