reckon_db_sup (reckon_db v1.4.4)
View SourceTop-level supervisor for reckon-db
This supervisor manages all store instances configured in the application environment. Each store gets its own system supervisor subtree.
Summary
Functions
Start the top-level supervisor
Start a store dynamically
Stop a store dynamically
Get list of running stores
Types
-type store_config() :: #store_config{store_id :: atom(), data_dir :: string(), mode :: single | cluster, timeout :: pos_integer(), writer_pool_size :: pos_integer(), reader_pool_size :: pos_integer(), gateway_pool_size :: pos_integer(), options :: map()}.
Functions
Start the top-level supervisor
-spec start_store(atom() | store_config()) -> {ok, pid()} | {error, term()}.
Start a store dynamically
Stop a store dynamically
-spec which_stores() -> [atom()].
Get list of running stores