Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4eb93dd952
Fetching contributors…

Cannot retrieve contributors at this time

177 lines (66 sloc) 3.505 kb

Module jobs_sampler

This module defines the jobs_sampler behaviour.

Required callback functions: init/2, sample/2, handle_msg/3, calc/2.

Authors: : Ulf Wiger (ulf.wiger@erlang-solutions.com).

Function Index

behaviour_info/1
calc/3
code_change/3
end_subscription/0
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/0
start_link/1
subscribe/0Subscribes to feedback indicator information.
tell_sampler/2
terminate/2
trigger_sample/0

Function Details

behaviour_info/1

behaviour_info(X1) -> any()

calc/3

calc(Type, Template, History) -> any()

code_change/3

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

end_subscription/0

end_subscription() -> any()

handle_call/3

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

handle_cast/2

handle_cast(X1, S) -> any()

handle_info/2

handle_info(Msg, State) -> any()

init/1

init(Opts) -> any()

start_link/0

start_link() -> any()

start_link/1

start_link(Opts) -> any()

subscribe/0

subscribe() -> ok



Subscribes to feedback indicator information

This function allows a process to receive the same information as the
jobs_server any time the information changes.

The notifications are delivered on the format {jobs_indicators, Info}, where

  Info :: [{IndicatorName, LocalValue, Remote}]
   Remote :: [{NodeName, Value}]
  

This information could be used e.g. to aggregate the information and generate new sampler information (which could be passed to a sampler plugin using tell_sampler/2, or to a specific queue using jobs:ask_queue/2.

tell_sampler/2

tell_sampler(P, Msg) -> any()

terminate/2

terminate(X1, S) -> any()

trigger_sample/0

trigger_sample() -> any()

Jump to Line
Something went wrong with that request. Please try again.