Raxol.Plugins.HotReloadManager (Raxol v2.0.1)
View SourceAdvanced hot-reload system for Plugin System v2.0.
Features:
- Intelligent code change detection
- State preservation during reloads
- Dependency-aware reloading
- Rollback on failure
- Development-friendly hot-swapping
- Production-safe reload strategies
Summary
Functions
Returns a specification to start this module under a supervisor.
Returns default hot-reload options for development.
Disables hot-reload for a plugin.
Enables hot-reload for a plugin with specified options.
Gets reload history for debugging.
Gets hot-reload status for a plugin.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Lists all plugins with hot-reload enabled.
Returns conservative hot-reload options for production.
Manually triggers a hot-reload for a plugin.
Rolls back a plugin to its previous state.
Types
@type file_change() :: %{ path: String.t(), type: :created | :modified | :deleted, plugin_id: plugin_id(), timestamp: DateTime.t() }
@type plugin_id() :: String.t()
@type reload_options() :: %{ strategy: reload_strategy(), preserve_state: boolean(), backup_enabled: boolean(), dependency_handling: :ignore | :reload_dependents | :block_if_dependents, timeout_ms: non_neg_integer() }
@type reload_strategy() :: :hot_swap | :graceful_restart | :dependency_cascade
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Returns default hot-reload options for development.
Disables hot-reload for a plugin.
Enables hot-reload for a plugin with specified options.
Gets reload history for debugging.
Gets hot-reload status for a plugin.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Lists all plugins with hot-reload enabled.
Returns conservative hot-reload options for production.
Manually triggers a hot-reload for a plugin.
Rolls back a plugin to its previous state.