|
Hedgehog
0.0.0
A library to generate hybrid pipeline workflow systems
|
Implements a signal handler to catch events such as termination and killing. More...
#include "graph_signal_handler.h"

Static Public Member Functions | |
| static void | handleSignal (int signum=SIGTERM) |
| Function that handles signals. More... | |
| static void | atExit () |
| Create a dot file at exit if the instance still exist. | |
| static void | setColorScheme (ColorScheme scheme) |
| Sets the color scheme for dot file generation. More... | |
| static void | setStructureOptions (StructureOptions options) |
| Sets the structure options for dot file generation. More... | |
| static void | setDebugOptions (DebugOptions options) |
| Sets the debug options for dot file generation. More... | |
| static void | registerGraph (Graph< GraphOutput, GraphInputs... > *graph) |
| Registers a task graph to be displayed when a signal is fired. More... | |
| static void | registerSignal (int signum=SIGTERM, bool atExit=false) |
| Registers a signal for handling. (default SIGTERM) More... | |
Static Private Attributes | |
| static Graph< GraphOutput, GraphInputs... > * | graphInstance_ = nullptr |
| < The outer graph instance More... | |
| static bool | signalHandled_ = false |
| Flag to indicate if a signal has been fired or not. More... | |
| static ColorScheme | colorScheme = ColorScheme::EXECUTION |
| < The color scheme to use for graph dot file More... | |
| static StructureOptions | structureOptions = StructureOptions::ALL |
| < The structure options to use for graph dot file More... | |
| static DebugOptions | debugOptions = DebugOptions::DEBUG |
| < The debug options to use for graph dot file More... | |
Implements a signal handler to catch events such as termination and killing.
Once a signal is caught, all task graphs that are registered with the signal handler will be written as a dot file. The dot file is output in the working directory with the name of the signal as a prefix and '<#>-graph-output.dot' as the suffix.
Definition at line 37 of file graph_signal_handler.h.
|
inlinestatic |
Function that handles signals.
Use TaskGraphSignalHandler::registerSignal to signal to this function
| signum | the signal number that was triggered |
Definition at line 54 of file graph_signal_handler.h.

|
inlinestatic |
Registers a task graph to be displayed when a signal is fired.
| graph | the task graph to be displayed. |
Definition at line 95 of file graph_signal_handler.h.
|
inlinestatic |
Registers a signal for handling. (default SIGTERM)
| signum | Signal number id |
| atExit | Boolean to test if GraphSignalHandler::atExit is called |
Definition at line 102 of file graph_signal_handler.h.

|
inlinestatic |
Sets the color scheme for dot file generation.
| scheme | the color scheme |
Definition at line 77 of file graph_signal_handler.h.
|
inlinestatic |
Sets the debug options for dot file generation.
| options | the debug options |
Definition at line 89 of file graph_signal_handler.h.
|
inlinestatic |
Sets the structure options for dot file generation.
| options | the structure options |
Definition at line 83 of file graph_signal_handler.h.
|
staticprivate |
< The color scheme to use for graph dot file
Sets the default color scheme.
Definition at line 44 of file graph_signal_handler.h.
|
staticprivate |
< The debug options to use for graph dot file
Sets the default debug options.
Definition at line 46 of file graph_signal_handler.h.
|
staticprivate |
< The outer graph instance
Set default value at nullptr.
Definition at line 40 of file graph_signal_handler.h.
|
staticprivate |
Flag to indicate if a signal has been fired or not.
Set default value at false.
Definition at line 42 of file graph_signal_handler.h.
|
staticprivate |
< The structure options to use for graph dot file
Sets the default structure options.
Definition at line 45 of file graph_signal_handler.h.