Copyright © 2016 - 2026 SigScale Global Inc.
Behaviours: application.
start_type() = normal | {takeover, node()} | {failover, node()}
| start/2 | Starts the application processes. |
| install/0 | Equivalent to install([node() | nodes()]). |
| install/1 | Initialize OCS tables. |
| join/1 | Join an existing cluster. |
| start_phase/3 | Called for each start phase in the application and included applications. |
| prep_stop/1 | Called when the application is about to be shut down, before any processes are terminated. |
| stop/1 | Called after the application has stopped to clean up. |
| config_change/3 | Called after a code replacement, if there are any changes to the configuration parameters. |
| force/1* | Try to force load bad tables. |
| add_example_offers/0* | Seed product catalog with example offers. |
| create_table/2* | Create mnesia table. |
start(StartType, StartArgs) -> Result
Starts the application processes.
See also: //kernel/application:start/1, //kernel/application:start/2.
install() -> Result
Equivalent to install([node() | nodes()]).
install(Nodes) -> Result
Initialize OCS tables.
Nodes is a list of the nodes where
ocs tables will be replicated.
join(Node) -> Result
Join an existing cluster.
Tables will be copied from the givenNode.
start_phase(Phase, StartType, PhaseArgs) -> Result
Called for each start phase in the application and included applications.
See also: //kernel/app.
prep_stop(State) -> #state{}
Called when the application is about to be shut down, before any processes are terminated.
See also: //kernel/application:stop/1.
stop(State) -> any()
Called after the application has stopped to clean up.
config_change(Changed, New, Removed) -> ok
Called after a code replacement, if there are any changes to the configuration parameters.
force(Tables) -> Result
Try to force load bad tables.
add_example_offers() -> Result
Seed product catalog with example offers.
create_table(Table, Nodes) -> Result
Create mnesia table.
Generated by EDoc