Sha256: 7b63ed953fd21951668b34704bb3a645b4c32773625d3e9ba42340aad70b4530

Contents?: true

Size: 1.85 KB

Versions: 28

Compression:

Stored size: 1.85 KB

Contents

%%%-------------------------------------------------------------------
%%% File:      thrift_app.erl
%%% @author    Cliff Moon <> []
%%% @copyright 2009 Cliff Moon
%%% @doc  
%%%
%%% @end  
%%%
%%% @since 2009-04-04 by Cliff Moon
%%%-------------------------------------------------------------------
-module(thrift_app).
-author('').

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

%%====================================================================
%% Application callbacks
%%====================================================================
%%--------------------------------------------------------------------
%% @spec start(Type, StartArgs) -> {ok, Pid} |
%%                                 {ok, Pid, State} |
%%                                 {error, Reason}
%% @doc This function is called whenever an application 
%% is started using application:start/1,2, and should start the processes
%% of the application. If the application is structured according to the
%% OTP design principles as a supervision tree, this means starting the
%% top supervisor of the tree.
%% @end 
%%--------------------------------------------------------------------
start(_Type, StartArgs) ->
  case thrift_sup:start_link() of
    {ok, Pid} -> 
      {ok, Pid};
    Error ->
      Error
  end.

%%--------------------------------------------------------------------
%% @spec stop(State) -> void()
%% @doc This function is called whenever an application
%% has stopped. It is intended to be the opposite of Module:start/2 and
%% should do any necessary cleaning up. The return value is ignored. 
%% @end 
%%--------------------------------------------------------------------
stop(_State) ->
  ok.

%%====================================================================
%% Internal functions
%%====================================================================


Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.1 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.10 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.11 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.12 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.13 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.14 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.15 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.16 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.17 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.2 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.3 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.4 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.5 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.6 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.7 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
auser-poolparty-1.3.8 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
fairchild-poolparty-1.3.17 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
fairchild-poolparty-1.3.5 examples/thrift/erlang/deps/thrift/src/thrift_app.erl
poolparty-1.3.15 examples/thrift/erlang/deps/thrift/src/thrift_app.erl