Module leo_rpc_client_manager

leo_rpc_client_conn_manager manages rpc-clients.

Behaviours: gen_server.

References

Description

leo_rpc_client_conn_manager manages rpc-clients

Function Index

code_change/3gen_server callback - Module:code_change(OldVsn, State, Extra) -> {ok, NewState} | {error, Reason}.
connected_nodes/0Retrieve connected nodes.
handle_call/3gen_server callback - Module:handle_call(Request, From, State) -> Result.
handle_cast/2gen_server callback - Module:handle_cast(Request, State) -> Result.
handle_info/2gen_server callback - Module:handle_info(Info, State) -> Result.
init/1gen_server callback - Module:init(Args) -> Result.
inspect/0Inspect whether a node is running or not.
inspect/1Inspect whether the node is running or not.
is_exists/2Is already ip/port exists.
start_link/1Start the server.
status/0Retrieve the current status.
stop/0Stop the server.
terminate/2gen_server callback - Module:terminate(Reason, State).

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

gen_server callback - Module:code_change(OldVsn, State, Extra) -> {ok, NewState} | {error, Reason}.

connected_nodes/0

connected_nodes() -> {ok, [atom()]}

Retrieve connected nodes

handle_call/3

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

gen_server callback - Module:handle_call(Request, From, State) -> Result

handle_cast/2

handle_cast(Msg, State) -> any()

gen_server callback - Module:handle_cast(Request, State) -> Result

handle_info/2

handle_info(Info, State) -> any()

gen_server callback - Module:handle_info(Info, State) -> Result

init/1

init(X1) -> any()

gen_server callback - Module:init(Args) -> Result

inspect/0

inspect() -> ok

Inspect whether a node is running or not

inspect/1

inspect(Node) -> active | inactive

Inspect whether the node is running or not

is_exists/2

is_exists(IP, Port) -> boolean()

Is already ip/port exists

start_link/1

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

Start the server

status/0

status() -> {ok, [tuple()]}

Retrieve the current status

stop/0

stop() -> ok

Stop the server

terminate/2

terminate(Reason, State) -> any()

gen_server callback - Module:terminate(Reason, State)


Generated by EDoc