View Source MishkaInstaller.PluginStateDynamicSupervisor (Mishka Installer v0.0.4-beta.1)
This module supervises the states created during the registration of each plugin.
module-communication-process-of-this-module
Module communication process of this module
+------------------------------------------------+
| |
| |
+------+ MishkaInstaller.PluginStateDynamicSupervisor |
| | |
| | |
| +--------------------------------------+----^----+
| | |
| | |
| | |
| +--------------------------+ | |
| | | | |
+------> PluginStateRegistry | | |
| | | |
+--------^-----------------+ | |
| | |
| | |
| | |
| | |
| +--------------------v----+-----+
| | |
| | MishkaInstaller.PluginState |
+--------+ |
+--------------------+----------+
|
|
|
|
+----------------------------+ |
| | |
| MishkaInstaller.PluginETS <------+
| |
+----------------------------+
Link to this section Summary
Functions
Get PID based on the name of a plugin from PluginStateRegistry Registry.
Show all PIDs of PluginStateDynamicSupervisor module from PluginStateRegistry Registry.
Show all PIDs of PluginStateDynamicSupervisor module based on a specific event from PluginStateRegistry Registry.
Start supervising plugin States.
You are able to terminate all children that this module is responsible for supervising with the assistance of this function.
Link to this section Functions
Get PID based on the name of a plugin from PluginStateRegistry Registry.
examples
Examples
MishkaInstaller.PluginStateDynamicSupervisor.get_plugin_pid("Plugin.TestName")
Show all PIDs of PluginStateDynamicSupervisor module from PluginStateRegistry Registry.
examples
Examples
MishkaInstaller.PluginStateDynamicSupervisor.running_imports()
Show all PIDs of PluginStateDynamicSupervisor module based on a specific event from PluginStateRegistry Registry.
examples
Examples
MishkaInstaller.PluginStateDynamicSupervisor.running_imports("event_test_name")
@spec start_job(%{id: String.t(), type: String.t(), parent_pid: any()}) :: :ignore | {:error, any()} | {:ok, :add | :edit, pid()}
Start supervising plugin States.
You are able to terminate all children that this module is responsible for supervising with the assistance of this function.
examples
Examples
MishkaInstaller.PluginStateDynamicSupervisor.terminate_childeren()