]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionWriter.cc
739471cadc9eb50d01c756f38673eb0a2a1e7db8
[thirdparty/squid.git] / src / mgr / ActionWriter.cc
1 /*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
8 #include "config.h"
9 #include "base/TextException.h"
10 #include "comm/Connection.h"
11 #include "mgr/ActionWriter.h"
12 #include "Store.h"
13
14
15 CBDATA_NAMESPACED_CLASS_INIT(Mgr, ActionWriter);
16
17 Mgr::ActionWriter::ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn):
18 StoreToCommWriter(conn, anAction->createStoreEntry()),
19 action(anAction)
20 {
21 debugs(16, 5, HERE << conn << " action: " << action);
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 }