Module ecpool_sup

Behaviours: supervisor.

Data Types

pool_name()

pool_name() = ecpool:pool_name()

Function Index

get_pool/1Get a pool.
init/1
pools/0Get All Pools supervisored by the ecpool_sup.
start_link/0Start supervisor.
start_pool/3Start a pool.
stop_pool/1Stop a pool.

Function Details

get_pool/1

get_pool(Pool::pool_name()) -> undefined | pid()

Get a pool.

init/1

init(X1) -> any()

pools/0

pools() -> [{pool_name(), pid()}]

Get All Pools supervisored by the ecpool_sup.

start_link/0

start_link() -> {ok, pid()} | {error, term()}

Start supervisor.

start_pool/3

start_pool(Pool::pool_name(), Mod::atom(), Opts::[tuple()]) -> {ok, pid()} | {error, term()}

Start a pool.

stop_pool/1

stop_pool(Pool::pool_name()) -> ok | {error, term()}

Stop a pool.


Generated by EDoc