ServiceRep.h
Go to the documentation of this file.
78 Initiate *makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override;
90 void putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment);
200 ConnWaiterDialer(const CbcPointer<Adaptation::Icap::ModXact> &xact, Adaptation::Icap::ConnWaiterDialer::Parent::Method aHandler);
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
summarizes adaptation service answer for the noteAdaptationAnswer() API
Definition: Answer.h:23
ServiceRep::Pointer theService
Definition: ServiceRep.h:199
NullaryMemFunT< ModXact > Parent
Definition: ServiceRep.h:198
~ConnWaiterDialer() override
Definition: ServiceRep.cc:743
ConnWaiterDialer(const CbcPointer< Adaptation::Icap::ModXact > &xact, Adaptation::Icap::ConnWaiterDialer::Parent::Method aHandler)
Definition: ServiceRep.cc:729
Definition: ModXact.h:142
Definition: Options.h:26
Definition: ServiceRep.h:61
void scheduleUpdate(time_t when)
Definition: ServiceRep.cc:608
void noteAdaptationAnswer(const Answer &answer) override
Definition: ServiceRep.cc:536
bool availableForOld() const
a transaction notified about connection slot availability may start communicating with the service
Definition: ServiceRep.cc:315
void noteConnectionUse(const Comm::ConnectionPointer &conn)
Definition: ServiceRep.cc:171
void scheduleNotification()
Definition: ServiceRep.cc:442
Security::SessionStatePointer sslSession
Definition: ServiceRep.h:115
void noteNewWaiter()
New xaction waiting for service to be up or available.
Definition: ServiceRep.h:96
time_t optionsFetchTime() const
Definition: ServiceRep.cc:646
void startGettingOptions()
Definition: ServiceRep.cc:596
Security::ContextPointer sslContext
Definition: ServiceRep.h:114
void changeOptions(Options *newOptions)
Definition: ServiceRep.cc:453
int availableConnections() const
Definition: ServiceRep.cc:198
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: ServiceRep.cc:566
ICAP::VectPoint parseVectPoint(const char *) const
ServiceRep(const ServiceConfigPointer &aConfig)
Definition: ServiceRep.cc:33
bool needNewOptions() const
Definition: ServiceRep.cc:448
void callWhenAvailable(AsyncCall::Pointer &cb, bool priority=false)
Definition: ServiceRep.cc:401
bool wantsUrl(const SBuf &urlPath) const override
Definition: ServiceRep.cc:323
bool existWaiters() const
if there are xactions waiting for the service to be available
Definition: ServiceRep.h:98
FadingCounter theSessionFailures
Definition: ServiceRep.h:145
const char * status() const override
internal cleanup; do not call directly
Definition: ServiceRep.cc:677
ICAP::Method parseMethod(const char *) const
void setMaxConnections()
Set the maximum allowed connections for the service.
Definition: ServiceRep.cc:183
void callWhenReady(AsyncCall::Pointer &cb)
Definition: ServiceRep.cc:419
void announceStatusChange(const char *downPhrase, bool important) const
Definition: ServiceRep.cc:521
void noteGoneWaiter()
An xaction is not waiting any more for service to be available.
Definition: ServiceRep.cc:237
Initiate * makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override
Definition: ServiceRep.cc:670
bool wantsPreview(const SBuf &urlPath, size_t &wantedSize) const
Definition: ServiceRep.cc:329
Comm::ConnectionPointer getIdleConnection(bool isRetriable)
Definition: ServiceRep.cc:117
bool connOverloadReported
whether we reported exceeding theMaxConnections
Definition: ServiceRep.h:142
std::deque< Client > theNotificationWaiters
Definition: ServiceRep.h:135
bool availableForNew() const
a new transaction may start communicating with the service
Definition: ServiceRep.cc:305
CBDATA_CHILD(ServiceRep)
void handleNewOptions(Options *newOptions)
Definition: ServiceRep.cc:574
void noteConnectionFailed(const char *comment)
Definition: ServiceRep.cc:177
void putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment)
Definition: ServiceRep.cc:146
int excessConnections() const
The number of connections which excess the Max-Connections limit.
Definition: ServiceRep.cc:222
CbcPointer< Adaptation::Initiate > theOptionsFetcher
Definition: ServiceRep.h:130
Definition: Initiate.h:31
Definition: Initiator.h:29
Definition: Service.h:28
Counts events, forgetting old ones. Useful for "3 errors/minute" limits.
Definition: FadingCounter.h:16
Definition: HttpRequest.h:49
Definition: pconn.h:38
Definition: AsyncJobCalls.h:91
Definition: AccessCheck.h:25
std::unique_ptr< SSL_SESSION, HardFun< void, SSL_SESSION *, &SSL_SESSION_free > > SessionStatePointer
Definition: Session.h:51
AsyncCall::Pointer callback
Definition: ServiceRep.h:122