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