|
Squid Web Cache master
|
#include <ServiceGroups.h>
Public Types | |
| typedef unsigned int | Pos |
Public Member Functions | |
| ServicePlan () | |
| ServicePlan (const ServiceGroupPointer &g, const ServiceFilter &filter) | |
| true iff there are no more services planned | |
| bool | exhausted () const |
| ServicePointer | current () const |
| returns nil if the plan is complete | |
| ServicePointer | replacement (const ServiceFilter &filter) |
| next to try after failure | |
| ServicePointer | next (const ServiceFilter &filter) |
| next in chain after success | |
| std::ostream & | print (std::ostream &os) const |
Private Attributes | |
| ServiceGroupPointer | group |
| the group we are iterating | |
| Pos | pos |
| current service position within the group | |
| bool | atEof |
| cached information for better performance | |
iterates services stored in a group; iteration is not linear because we need to both replace failed services and advance to the next chain link
Definition at line 122 of file ServiceGroups.h.
| typedef unsigned int Adaptation::ServicePlan::Pos |
Definition at line 125 of file ServiceGroups.h.
| Adaptation::ServicePlan::ServicePlan | ( | ) |
Definition at line 275 of file ServiceGroups.cc.
|
explicit |
Definition at line 279 of file ServiceGroups.cc.
| Adaptation::ServicePointer Adaptation::ServicePlan::current | ( | ) | const |
current service
Definition at line 289 of file ServiceGroups.cc.
|
inline |
Definition at line 132 of file ServiceGroups.h.
References atEof.
| Adaptation::ServicePointer Adaptation::ServicePlan::next | ( | const ServiceFilter & | filter | ) |
Definition at line 304 of file ServiceGroups.cc.
| std::ostream & Adaptation::ServicePlan::print | ( | std::ostream & | os | ) | const |
Definition at line 312 of file ServiceGroups.cc.
Referenced by Adaptation::operator<<().
| Adaptation::ServicePointer Adaptation::ServicePlan::replacement | ( | const ServiceFilter & | filter | ) |
Definition at line 296 of file ServiceGroups.cc.
|
private |
Definition at line 144 of file ServiceGroups.h.
Referenced by ServicePlan(), and exhausted().
|
private |
Definition at line 142 of file ServiceGroups.h.
Referenced by ServicePlan().
|
private |
Definition at line 143 of file ServiceGroups.h.
Referenced by ServicePlan().