]>
Commit | Line | Data |
---|---|---|
8822ebee | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
8822ebee | 3 | * |
bbc27441 AJ |
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. | |
8822ebee AR |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 16 Cache Manager API */ |
10 | ||
f7f3304a | 11 | #include "squid.h" |
8822ebee | 12 | #include "base/TextException.h" |
c3e8e4e9 | 13 | #include "comm/Connection.h" |
8822ebee AR |
14 | #include "mgr/ActionWriter.h" |
15 | #include "Store.h" | |
16 | ||
8822ebee AR |
17 | CBDATA_NAMESPACED_CLASS_INIT(Mgr, ActionWriter); |
18 | ||
c3e8e4e9 | 19 | Mgr::ActionWriter::ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn): |
f53969cc SM |
20 | StoreToCommWriter(conn, anAction->createStoreEntry()), |
21 | action(anAction) | |
8822ebee | 22 | { |
c3e8e4e9 | 23 | debugs(16, 5, HERE << conn << " action: " << action); |
8822ebee AR |
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 | } | |
f53969cc | 35 |