Module sidejob_resource_stats

Behaviours: gen_server.

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
init_stats/1 Used by sidejob_resource_sup to initialize a newly created stats ETS table to ensure the table is non-empty before bringing a resource online.
reg_name/1
report/5 Used by sidejob_worker processes to report per-worker statistics.
start_link/2
stats/1 Return the computed stats for the given sidejob resource.
terminate/2
usage/1 Return the current usage for the given sidejob resource.

Function Details

code_change/3

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

handle_call/3

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

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

init_stats/1

init_stats(StatsETS) -> any()

Used by sidejob_resource_sup to initialize a newly created stats ETS table to ensure the table is non-empty before bringing a resource online

reg_name/1

reg_name(Name) -> any()

report/5

report(Name, Id, Usage, In, Out) -> any()

Used by sidejob_worker processes to report per-worker statistics

start_link/2

start_link(RegName, StatsETS) -> any()

stats/1

stats(Name) -> any()

Return the computed stats for the given sidejob resource

terminate/2

terminate(Reason, State) -> any()

usage/1

usage(Name) -> any()

Return the current usage for the given sidejob resource


Generated by EDoc