Module election_worker

Main worker process who's responsibility is to start the election process on start up either syncronously or asyncronously.

Behaviours: gen_server.

Description

Main worker process who's responsibility is to start the election process on start up either syncronously or asyncronously. Also sets up monitoring for node up and down events and triggers automatic election if a node goes down or comes up.

Function Index

handle_call/3
handle_cast/2
handle_continue/2
handle_info/2
init/1
start_link/0Starts the elector worker process.

Function Details

handle_call/3

handle_call(Msg, From, State) -> any()

handle_cast/2

handle_cast(_msg, State) -> any()

handle_continue/2

handle_continue(X1, Opts) -> any()

handle_info/2

handle_info(Msg, State) -> any()

init/1

init(X1) -> any()

start_link/0

start_link() -> {ok, pid()} | ignore | {error, term()}

Starts the elector worker process.


Generated by EDoc