Module config_handler

Module responsible for handling configuration.

Description

Module responsible for handling configuration. These settings can be altered with custom settings in the application environment.

Function Index

election_delay/0Returns the configured election delay.
post_election_hooks/0Returns the configured post election hooks.
pre_election_hooks/0Returns the configured pre election hooks.
quorum_check/0Returns boolean value indicating weather the quorum size is met or not.
quorum_size/0Returns the configured quorum size.
startup_hooks_enabled/0Returns the configured startup hooks enabled flag.
strategy_module/0Returns the configured strategy module.
sync_start/0Returns the configured sync_start flag.

Function Details

election_delay/0

election_delay() -> Delay::integer()

Returns the configured election delay. Default value is 1000 (1 second).

post_election_hooks/0

post_election_hooks() -> Hooks::[{module(), function(), Args::list()}]

Returns the configured post election hooks. Default value is [].

pre_election_hooks/0

pre_election_hooks() -> Hooks::[{module(), function(), Args::list()}]

Returns the configured pre election hooks. Default value is [].

quorum_check/0

quorum_check() -> QuorumCheck::boolean()

Returns boolean value indicating weather the quorum size is met or not.

quorum_size/0

quorum_size() -> QuorumSize::integer()

Returns the configured quorum size. This is the number of nodes that must be up and running in order to start an election(including the local node). Default value is 1.

startup_hooks_enabled/0

startup_hooks_enabled() -> StartupHooksEnabled::boolean()

Returns the configured startup hooks enabled flag. When turned off the post or pre election hooks will not be executed on the startup. Default value is true.

strategy_module/0

strategy_module() -> StrategyModule::module()

Returns the configured strategy module. Default value is runtime_high_strategy (Node with the highest runtime).

sync_start/0

sync_start() -> SyncStart::boolean()

Returns the configured sync_start flag. Default value is true.


Generated by EDoc