Sha256: be8bb48f63717849fd32b68ff49cab5b1fe12eee4c164df638705bf388192700
Contents?: true
Size: 1.79 KB
Versions: 28
Compression:
Stored size: 1.79 KB
Contents
%%%------------------------------------------------------------------- %%% File: thrift_sup.erl %%% @author Cliff Moon <> [] %%% @copyright 2009 Cliff Moon %%% @doc %%% %%% @end %%% %%% @since 2009-04-04 by Cliff Moon %%%------------------------------------------------------------------- -module(thrift_sup). -author(''). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -define(SERVER, ?MODULE). %%==================================================================== %% API functions %%==================================================================== %%-------------------------------------------------------------------- %% @spec start_link() -> {ok,Pid} | ignore | {error,Error} %% @doc Starts the supervisor %% @end %%-------------------------------------------------------------------- start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). %%==================================================================== %% Supervisor callbacks %%==================================================================== %%-------------------------------------------------------------------- %% @spec init(Args) -> {ok, {SupFlags, [ChildSpec]}} | %% ignore | %% {error, Reason} %% @doc Whenever a supervisor is started using %% supervisor:start_link/[2,3], this function is called by the new process %% to find out about restart strategy, maximum restart frequency and child %% specifications. %% @end %%-------------------------------------------------------------------- init([]) -> {ok,{{one_for_all,0,1}, []}}. %%==================================================================== %% Internal functions %%====================================================================
Version data entries
28 entries across 28 versions & 3 rubygems