]>
Commit | Line | Data |
---|---|---|
8822ebee | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 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 "mgr/Action.h" |
16 | #include "mgr/StoreToCommWriter.h" | |
17 | ||
18 | namespace Mgr | |
19 | { | |
20 | ||
21 | /// provides Coordinator with a local cache manager response | |
22 | class Filler: public StoreToCommWriter | |
23 | { | |
5c2f68b7 AJ |
24 | CBDATA_CLASS(Filler); |
25 | ||
8822ebee | 26 | public: |
c3e8e4e9 | 27 | Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn, unsigned int aRequestId); |
8822ebee AR |
28 | |
29 | protected: | |
30 | /* AsyncJob API */ | |
31 | virtual void start(); | |
32 | virtual void swanSong(); | |
33 | ||
34 | private: | |
35 | Action::Pointer action; ///< action that will run() and sendResponse() | |
36 | unsigned int requestId; ///< the ID of the Request we are responding to | |
8822ebee AR |
37 | }; |
38 | ||
39 | } // namespace Mgr | |
40 | ||
41 | #endif /* SQUID_MGR_FILLER_H */ | |
f53969cc | 42 |