]>
Commit | Line | Data |
---|---|---|
8822ebee AR |
1 | /* |
2 | * $Id$ | |
3 | * | |
4 | * DEBUG: section 16 Cache Manager API | |
5 | * | |
6 | */ | |
7 | ||
f7f3304a | 8 | #include "squid.h" |
8822ebee | 9 | #include "base/TextException.h" |
c3e8e4e9 | 10 | #include "comm/Connection.h" |
8822ebee AR |
11 | #include "mgr/ActionWriter.h" |
12 | #include "Store.h" | |
13 | ||
14 | ||
15 | CBDATA_NAMESPACED_CLASS_INIT(Mgr, ActionWriter); | |
16 | ||
c3e8e4e9 AJ |
17 | Mgr::ActionWriter::ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn): |
18 | StoreToCommWriter(conn, anAction->createStoreEntry()), | |
d9fc6862 | 19 | action(anAction) |
8822ebee | 20 | { |
c3e8e4e9 | 21 | debugs(16, 5, HERE << conn << " action: " << action); |
8822ebee AR |
22 | } |
23 | ||
24 | void | |
25 | Mgr::ActionWriter::start() | |
26 | { | |
27 | debugs(16, 5, HERE); | |
28 | Must(action != NULL); | |
29 | ||
30 | StoreToCommWriter::start(); | |
31 | action->fillEntry(entry, false); | |
32 | } |