Module riak_pipe_vnode_worker_sup

Supervisor for a vnode's worker processes.

Behaviours: supervisor.

Description

Supervisor for a vnode's worker processes. One of these is started per vnode.

Function Index

init/1Initialize the supervisor.
start_link/2Start the supervisor.
start_worker/2Start a new worker under the supervisor.
terminate_worker/2Stop a worker immediately.

Function Details

init/1

init(X1::[riak_pipe_vnode:partition() | pid()]) -> {ok, {{supervisor:strategy(), pos_integer(), pos_integer()}, [supervisor:child_spec()]}}

Initialize the supervisor. This is a simple_one_for_one, whose child spec is for starting riak_pipe_vnode_worker FSMs.

start_link/2

start_link(Partition::riak_pipe_vnode:partition(), VnodePid::pid()) -> {ok, pid()} | ignore | {error, term()}

Start the supervisor.

start_worker/2

start_worker(Supervisor::pid(), Details::riak_pipe_fitting:details()) -> {ok, pid()}

Start a new worker under the supervisor.

terminate_worker/2

terminate_worker(Supervisor::pid(), WorkerPid::pid()) -> ok | {error, term()}

Stop a worker immediately


Generated by EDoc, Jan 11 2013, 18:46:00.