Module jup_kernel_heartbeat_srv

Behaviours: gen_server.

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
last_heartbeat/1
start_link/2 Heartbeat socket implementation.
terminate/2

Function Details

code_change/3

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

handle_call/3

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

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

last_heartbeat/1

last_heartbeat(Name::jupyter:name()) -> erlang:timestamp()

start_link/2

start_link(Name::jupyter:name(), ConnData::jup_connection_file:data()) -> {ok, pid()}

Heartbeat socket implementation

Opens a simple REP socket on which all messages are returned ad-verbatim to the sender. We store the last timestamp of each heartbeat.

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc