60 debugs(16, 3,
"function-based " << action);
61 const auto profile = ActionProfile::Pointer::Make(action,
63 protection, atomicity, format);
69 ClassActionCreationHandler *handler,
74 debugs(16, 3,
"class-based " << action);
75 const auto profile = ActionProfile::Pointer::Make(action,
77 protection, atomicity, format);
static CacheManager * GetInstance()
void registerProfile(const Mgr::ActionProfilePointer &)
remembers the given profile while ignoring attempts to register a same-name duplicate
creates Action using supplied Action::Create method and command
Action::Pointer create(const Command::Pointer &cmd) const override
returns a pointer to the new Action object for cmd; never nil
ClassActionCreationHandler Handler
ClassActionCreator(Handler *const aHandler)
Handler * handler
configured Action object creator
creates FunAction using ActionCreator API
OBJH * handler
legacy function to pass to the FunAction wrapper
FunActionCreator(OBJH *const aHandler)
Action::Pointer create(const CommandPointer &cmd) const override
returns a pointer to the new Action object for cmd; never nil
static Pointer Create(const CommandPointer &cmd, OBJH *aHandler)
#define debugs(SECTION, LEVEL, CONTENT)
Protected
whether default cachemgr_passwd configuration denies the Action
ActionPointer() ClassActionCreationHandler(const CommandPointer &cmd)
Atomic
whether Action::dump() writes the entire report before returning
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)