]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/Config.h
1 #ifndef SQUID_ADAPTATION__CONFIG_H
2 #define SQUID_ADAPTATION__CONFIG_H
6 #include "adaptation/Elements.h"
21 typedef RefCount
<Service
> ServicePointer
;
29 static void Finalize(bool enable
);
31 static void ParseServiceSet(void);
32 static void FreeServiceSet(void);
33 static void DumpServiceSet(StoreEntry
*, const char *);
35 static void ParseAccess(ConfigParser
&parser
);
36 static void FreeAccess(void);
37 static void DumpAccess(StoreEntry
*, const char *);
39 friend class AccessCheck
;
42 static bool Enabled
; // true if at least one adaptation mechanism is
46 int send_client_username
;
47 int service_failure_limit
;
48 int service_revival_delay
;
50 Vector
<ServiceConfig
*> serviceConfigs
;
55 void parseService(void);
56 void freeService(void);
57 void dumpService(StoreEntry
*, const char *) const;
58 ServicePointer
findService(const String
&);
59 Class
* findClass(const String
& key
);
61 virtual void finalize();
64 Config(const Config
&); // unsupported
65 Config
&operator =(const Config
&); // unsupported
67 virtual ServicePointer
createService(const ServiceConfig
&cfg
) = 0;
70 } // namespace Adaptation
72 #endif /* SQUID_ADAPTATION__CONFIG_H */