]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/IoAction.h
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 16 Cache Manager API */
11 #ifndef SQUID_MGR_IO_ACTION_H
12 #define SQUID_MGR_IO_ACTION_H
15 #include "mgr/Action.h"
20 /// store size histograms of network read() from peer server
25 IoActionData
& operator += (const IoActionData
& stats
);
31 double http_read_hist
[IoStats::histSize
];
32 double ftp_read_hist
[IoStats::histSize
];
33 double gopher_read_hist
[IoStats::histSize
];
36 /// implement aggregated 'io' action
37 class IoAction
: public Action
40 IoAction(const CommandPointer
&cmd
);
43 static Pointer
Create(const CommandPointer
&cmd
);
45 virtual void add(const Action
& action
);
46 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
47 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
51 virtual void collect();
52 virtual void dump(StoreEntry
* entry
);
60 #endif /* SQUID_MGR_IO_ACTION_H */