Module maestro_serv
September 27, 2015 ยท View on GitHub
Behaviours: gen_server.
Data Types
maestro()
maestro() = atom()
maestro_ref()
maestro_ref() = maestro() | pid()
pool_ref()
pool_ref() = {module(), pid()}
start_ret()
start_ret() = {ok, pid()} | ignore | {error, term()}
Function Index
| all_pools/1 | |
| code_change/3 | |
| handle_call/3 | |
| handle_cast/2 | |
| handle_info/2 | |
| init/1 | |
| pick_pool/1 | |
| start_maestro/3 | |
| start_managed_pool/4 | |
| stop/1 | |
| terminate/2 |
Function Details
all_pools/1
all_pools(Maestro::maestro()) -> [pool_ref()]
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()
pick_pool/1
pick_pool(Maestro::maestro()) -> PoolRef::pool_ref()
start_maestro/3
start_maestro(StartFun::start | start_link, MaestroArgs::proplists:proplist(), WorkerArgs::proplists:proplist()) -> start_ret()
start_managed_pool/4
start_managed_pool(MaestroPid::pid(), M::module(), F::atom(), A::undefined | [term()]) -> start_ret()
stop/1
stop(MaestroRef::maestro_ref()) -> ok
terminate/2
terminate(Reason, State) -> any()