24#ifndef GROUP_ACTION_INCLUDED
25#define GROUP_ACTION_INCLUDED
67 std::string &message);
165 const std::string &message_origin) = 0;
The parent class for group wide operations.
Definition: group_action.h:35
enum_action_result_level message_level
Simply log, are there warnings, or should we report an error.
Definition: group_action.h:128
std::string log_message
The log execution message: success or failure.
Definition: group_action.h:130
Group_action_diagnostics()
Constructor.
Definition: group_action.cc:26
void append_execution_message(const char *message)
Appends the given message to the execution message for this operation.
Definition: group_action.cc:57
bool has_warning()
return The test has logged warnings?
Definition: group_action.cc:86
enum_action_result_level
Definition: group_action.h:37
@ GROUP_ACTION_LOG_END
Definition: group_action.h:41
@ GROUP_ACTION_LOG_WARNING
Definition: group_action.h:39
@ GROUP_ACTION_LOG_ERROR
Definition: group_action.h:40
@ GROUP_ACTION_LOG_INFO
Definition: group_action.h:38
void set_warning_message(const char *warning_msg)
Set the warning message for this operation.
Definition: group_action.cc:65
void set_execution_message(enum_action_result_level level, std::string &message)
Set the message for this operation.
Definition: group_action.cc:43
std::string warning_message
The warning message.
Definition: group_action.h:132
std::string & get_warning_message()
Definition: group_action.cc:77
void set_execution_info(Group_action_diagnostics *diagnostics)
Set the message for this operation.
Definition: group_action.cc:31
void clear_info()
Removes the old log messages and level information.
Definition: group_action.cc:90
enum_action_result_level get_execution_message_level()
Definition: group_action.cc:82
void set_execution_message_level(enum_action_result_level level)
Set the result level for the message for this operation.
Definition: group_action.cc:38
std::string & get_execution_message()
Definition: group_action.cc:73
void append_warning_message(const char *warning_msg)
Append to the warning message for this operation.
Definition: group_action.cc:69
Definition: group_action_message.h:33
The parent class for group wide operations.
Definition: group_action.h:139
virtual void get_action_message(Group_action_message **message)=0
Get the message with parameters to this action.
virtual enum_action_execution_result execute_action(bool invoking_member, Plugin_stage_monitor_handler *stage_handler, Notification_context *)=0
Execute the action.
virtual PSI_stage_key get_action_stage_termination_key()
For this action, what is the PSI key for the last stage when the action is terminating.
Definition: group_action.cc:98
virtual Group_action_diagnostics * get_execution_info()=0
Gets the info about execution, be it success or failure.
enum_action_execution_result
Enum for the end results of a action execution.
Definition: group_action.h:142
@ GROUP_ACTION_RESULT_END
Definition: group_action.h:148
@ GROUP_ACTION_RESULT_TERMINATED
Definition: group_action.h:143
@ GROUP_ACTION_RESULT_RESTART
Definition: group_action.h:145
@ GROUP_ACTION_RESULT_ERROR
Definition: group_action.h:144
@ GROUP_ACTION_RESULT_KILLED
Definition: group_action.h:147
@ GROUP_ACTION_RESULT_ABORTED
Definition: group_action.h:146
virtual ~Group_action()=0
virtual int process_action_message(Group_action_message &message, const std::string &message_origin)=0
virtual bool stop_action_execution(bool killed)=0
A convenience context class used to share information between the event handlers and the notifier.
Definition: notification.h:35
Definition: stage_monitor_handler.h:30
unsigned int PSI_stage_key
Instrumented stage key.
Definition: psi_stage_bits.h:43