11#ifndef SQUID_SRC_MGR_ACTION_H
12#define SQUID_SRC_MGR_ACTION_H
71 const char *
name()
const;
#define RefCountable
The locking interface for use on Reference-Counted classes.
struct msghdr with a known type, fixed-size I/O and control buffers
virtual void dump(StoreEntry *)
virtual bool aggregatable() const
virtual Format format() const
action report syntax
void fillEntry(StoreEntry *entry, bool writeHttpHeader)
prepare store entry, dump info, close store entry (if possible)
RefCount< Action > Pointer
const Command & command() const
the cause of this action
void sendResponse(Ipc::RequestId)
notify Coordinator that this action is done with local processing
virtual void respond(const Request &request)
respond to Coordinator request; default is to collect and sendResponse
StoreEntry * createStoreEntry() const
creates store entry from params
virtual void collect()
calculate and keep local action-specific information
bool atomic() const
dump() call writes everything before returning
const char * contentType() const
HTTP Content-Type header value for this Action report.
Action & operator=(const Action &)
virtual void unpack(const Ipc::TypedMsgHdr &)
unpack action info from the message received by Coordinator
const char * name() const
label as seen in the cache manager menu
const CommandPointer cmd
the command that caused this action
virtual void add(const Action &action)
incrementally merge in remote information (of the same action type)
virtual void pack(Ipc::TypedMsgHdr &) const
pack collected action info into a message to be sent to Coordinator
void run(StoreEntry *entry, bool writeHttpHeader)
collect + fillEntry: collect local information and fill the store entry
combined hard-coded action profile with user-supplied action parameters
void OpenKidSection(StoreEntry *, Format)
void CloseKidSection(StoreEntry *, Format)