]> git.ipfire.org Git - thirdparty/squid.git/blame - src/mgr/Filler.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / mgr / Filler.cc
CommitLineData
8822ebee
AR
1/*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
f7f3304a 8#include "squid.h"
8822ebee 9#include "base/TextException.h"
c3e8e4e9 10#include "comm/Connection.h"
8822ebee
AR
11#include "mgr/Filler.h"
12#include "mgr/Response.h"
13#include "Store.h"
14
8822ebee
AR
15CBDATA_NAMESPACED_CLASS_INIT(Mgr, Filler);
16
c3e8e4e9 17Mgr::Filler::Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn,
8822ebee 18 unsigned int aRequestId):
c3e8e4e9 19 StoreToCommWriter(conn, anAction->createStoreEntry()),
d9fc6862
A
20 action(anAction),
21 requestId(aRequestId)
8822ebee 22{
c3e8e4e9 23 debugs(16, 5, HERE << conn << " action: " << action);
8822ebee
AR
24}
25
26void
27Mgr::Filler::start()
28{
29 debugs(16, 5, HERE);
30 Must(requestId != 0);
31 Must(action != NULL);
32
33 StoreToCommWriter::start();
34 action->run(entry, false);
35}
36
37void
38Mgr::Filler::swanSong()
39{
40 debugs(16, 5, HERE);
41 action->sendResponse(requestId);
42 StoreToCommWriter::swanSong();
43}