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