]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Filler.h
Merged from trunk
[thirdparty/squid.git] / src / mgr / Filler.h
1 /*
2 * DEBUG: section 16 Cache Manager API
3 *
4 */
5
6 #ifndef SQUID_MGR_FILLER_H
7 #define SQUID_MGR_FILLER_H
8
9 #include "comm/forward.h"
10 #include "HttpRequestMethod.h"
11 #include "mgr/Action.h"
12 #include "mgr/StoreToCommWriter.h"
13
14 namespace Mgr
15 {
16
17 /// provides Coordinator with a local cache manager response
18 class Filler: public StoreToCommWriter
19 {
20 public:
21 Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn, unsigned int aRequestId);
22
23 protected:
24 /* AsyncJob API */
25 virtual void start();
26 virtual void swanSong();
27
28 private:
29 Action::Pointer action; ///< action that will run() and sendResponse()
30 unsigned int requestId; ///< the ID of the Request we are responding to
31
32 CBDATA_CLASS2(Filler);
33 };
34
35 } // namespace Mgr
36
37 #endif /* SQUID_MGR_FILLER_H */