1 #ifndef SQUID_ADAPTATION__CONFIG_H
2 #define SQUID_ADAPTATION__CONFIG_H
5 #include "base/AsyncCall.h"
6 #include "adaptation/forward.h"
7 #include "adaptation/Elements.h"
18 static void Finalize(bool enable
);
20 static void ParseServiceSet(void);
21 static void ParseServiceChain(void);
23 static void ParseAccess(ConfigParser
&parser
);
24 static void FreeAccess(void);
25 static void DumpAccess(StoreEntry
*, const char *);
27 friend class AccessCheck
;
30 static bool Enabled
; // true if at least one adaptation mechanism is
32 // these are global squid.conf options, documented elsewhere
33 static char *masterx_shared_name
; // global TODO: do we need TheConfig?
34 static int service_iteration_limit
;
35 // Options below are accessed via Icap::TheConfig or Ecap::TheConfig
36 // TODO: move ICAP-specific options to Icap::Config and add TheConfig
39 int send_client_username
;
40 int service_failure_limit
;
41 time_t oldest_service_failure
;
42 int service_revival_delay
;
43 int icap_uses_indirect_client
;
45 Vector
<ServiceConfig
*> serviceConfigs
;
50 void parseService(void);
51 void freeService(void);
52 void dumpService(StoreEntry
*, const char *) const;
53 ServicePointer
findService(const String
&);
55 virtual void finalize();
58 Config(const Config
&); // unsupported
59 Config
&operator =(const Config
&); // unsupported
61 virtual ServicePointer
createService(const ServiceConfig
&cfg
) = 0;
63 static void ParseServiceGroup(ServiceGroupPointer group
);
64 static void FreeServiceGroups(void);
65 static void DumpServiceGroups(StoreEntry
*, const char *);
68 } // namespace Adaptation
70 #endif /* SQUID_ADAPTATION__CONFIG_H */