Module mc_topology

mongoc internal module for monitoring a topology of one or more servers.

Copyright © (C) 2015, Alexander Hudich

Behaviours: gen_server.

Authors: Alexander Hudich (alttagil@gmail.com).

Description

mongoc internal module for monitoring a topology of one or more servers.

Function Index

start_link/3
init/1
terminate/2
code_change/3
disconnect/1
update_topology/1
get_state/1
get_state_part/1
get_pool/1
get_pool/2
get_pool/4
handle_call/3
handle_cast/2
handle_info/2

Function Details

start_link/3

start_link(Seeds::any(), TopologyOptions::any(), WorkerOptions::any()) -> {ok, Pid::pid()} | ignore | {error, Reason::term()}

init/1

init(Args::term()) -> {ok, State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}} | {ok, State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}, timeout() | hibernate} | {stop, Reason::term()} | ignore

terminate/2

terminate(Reason::normal | shutdown | {shutdown, term()} | term(), State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}) -> term()

code_change/3

code_change(OldVsn::term() | {down, term()}, State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}, Extra::term()) -> {ok, NewState::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}} | {error, Reason::term()}

disconnect/1

disconnect(Topology) -> any()

update_topology/1

update_topology(Topology) -> any()

get_state/1

get_state(Topology) -> any()

get_state_part/1

get_state_part(Topology) -> any()

get_pool/1

get_pool(Topology) -> any()

get_pool/2

get_pool(Topology::pid() | atom(), Options::map() | list()) -> {ok, map()} | {error, any()}

get_pool/4

get_pool(From, Topology_state, RPMode, Tags) -> any()

handle_call/3

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

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(Info, State) -> any()


Generated by EDoc