]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/StoreIoAction.h
2 * Copyright (C) 1996-2014 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_STORE_IO_ACTION_H
12 #define SQUID_MGR_STORE_IO_ACTION_H
14 #include "mgr/Action.h"
19 /// Store IO interface data
20 class StoreIoActionData
24 StoreIoActionData
& operator += (const StoreIoActionData
& stats
);
28 double create_select_fail
;
29 double create_create_fail
;
30 double create_success
;
33 /// implement aggregated 'store_io' action
34 class StoreIoAction
: public Action
37 StoreIoAction(const CommandPointer
&cmd
);
40 static Pointer
Create(const CommandPointer
&cmd
);
42 virtual void add(const Action
& action
);
43 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
44 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
48 virtual void collect();
49 virtual void dump(StoreEntry
* entry
);
52 StoreIoActionData data
;
57 #endif /* SQUID_MGR_STORE_IO_ACTION_H */