]>
Commit | Line | Data |
---|---|---|
8822ebee | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors |
8822ebee | 3 | * |
bbc27441 AJ |
4 | * Squid software is distributed under GPLv2+ license and includes |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
8822ebee AR |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 16 Cache Manager API */ |
10 | ||
8822ebee AR |
11 | #ifndef SQUID_MGR_FILLER_H |
12 | #define SQUID_MGR_FILLER_H | |
13 | ||
c3e8e4e9 | 14 | #include "comm/forward.h" |
8822ebee AR |
15 | #include "HttpRequestMethod.h" |
16 | #include "mgr/Action.h" | |
17 | #include "mgr/StoreToCommWriter.h" | |
18 | ||
19 | namespace Mgr | |
20 | { | |
21 | ||
22 | /// provides Coordinator with a local cache manager response | |
23 | class Filler: public StoreToCommWriter | |
24 | { | |
25 | public: | |
c3e8e4e9 | 26 | Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn, unsigned int aRequestId); |
8822ebee AR |
27 | |
28 | protected: | |
29 | /* AsyncJob API */ | |
30 | virtual void start(); | |
31 | virtual void swanSong(); | |
32 | ||
33 | private: | |
34 | Action::Pointer action; ///< action that will run() and sendResponse() | |
35 | unsigned int requestId; ///< the ID of the Request we are responding to | |
36 | ||
37 | CBDATA_CLASS2(Filler); | |
38 | }; | |
39 | ||
40 | } // namespace Mgr | |
41 | ||
42 | #endif /* SQUID_MGR_FILLER_H */ |