]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionWriter.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / mgr / ActionWriter.cc
1 /*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
8 #include "squid.h"
9 #include "base/TextException.h"
10 #include "comm/Connection.h"
11 #include "mgr/ActionWriter.h"
12 #include "Store.h"
13
14 CBDATA_NAMESPACED_CLASS_INIT(Mgr, ActionWriter);
15
16 Mgr::ActionWriter::ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn):
17 StoreToCommWriter(conn, anAction->createStoreEntry()),
18 action(anAction)
19 {
20 debugs(16, 5, HERE << conn << " action: " << action);
21 }
22
23 void
24 Mgr::ActionWriter::start()
25 {
26 debugs(16, 5, HERE);
27 Must(action != NULL);
28
29 StoreToCommWriter::start();
30 action->fillEntry(entry, false);
31 }