View Source sidejob_resource_stats (sidejob v2.2.0)

Summary

Functions

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
Used by sidejob_worker processes to report per-worker statistics
Return the computed stats for the given sidejob resource
Return the current usage for the given sidejob resource

Functions

Link to this function

code_change(OldVsn, State, Extra)

View Source
Link to this function

handle_call(Request, From, State)

View Source
Link to this function

handle_info(Info, State)

View Source
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
Link to this function

report(Name, Id, Usage, In, Out)

View Source
Used by sidejob_worker processes to report per-worker statistics
Link to this function

start_link(RegName, StatsETS)

View Source
Return the computed stats for the given sidejob resource
Link to this function

terminate(Reason, State)

View Source
Return the current usage for the given sidejob resource