ensure_all_started (application), {OK, started} | {Error, reason}ensure_all_started (application, Type), {OK, started} | {Error, Reason} Typesapplication = Atom ()Type = restart_type () Started = [Atom ()]Reason = term () ensure_started (application)-OK | {Error, reason}ensure_started (application, Type)-. Ok | {Error, Reason} Typesapplication = Atom ()Type = restart_type () Reason = term () env. GET_ALL_ENV ()get_all_env (application), EnvTypes
application = Atom ()
Env = [{Par:: Atom (), Val:: Term ()}]
Get_all_key (), [] | {OK, Keys}get_all_key (application), undefined | Keystypesapplication = Atom ()Keys = {OK, [{Key:: Atom (), Val:: Term ()}, ...]}Get_application (), undefined | {OK, application}get_application (pidormodule), undefined | {OK, application} Typespidormodule = (PID:: PID ()) | (Module:: module ())application = Atom ()Get_env (Par)-undefined | {OK, val}get_env (application, Par), undefined | {OK, Val} Typesapplication = Par = Atom ()Val = term ()Get_env (Application, Par, Def), valtypesapplication = Par = Atom ()
Def = Val = term ()Get_key (key), undefined | {OK, Val}
Get_key (Application, key), undefined | {OK, Val} Typesapplication = Key = Atom ()Val = term ()Load (APPDESCR)-ok | {error, Reason}load (APPDESCR, distributed), OK | {Error, Reason} TypesAPPDESCR = Application | (AppSpec:: Application_spec ())application = Atom ()distributed =
{application, Nodes} | {application, time, Nodes} | DefaultNodes = [Node () | tuple_of (Node ())] Time = integer () >= 1Reason = term ()application_spec () =
{application,
application:: Atom (),
appspeckeys:: [Application_opt ()]}
application_opt () =
{description, Description:: String ()} |
{vsn, VSN:: String ()} |
{id, ID:: String ()} |
{modules, [module:: Module ()]} |
{registered, Names:: [Name:: Atom ()]} |
{applications, [Application:: Atom ()]} |
{included_applications, [Application:: Atom ()]} |
{env, [{Par:: Atom (), Val:: Term ()}]} |
{start_phases,
[{phase:: Atom (), Phaseargs:: Term ()} ] | Undefined} |
{maxt, Maxt:: Timeout ()} |
{maxp, Maxp:: Integer () >= 1 | infinity} |
{mod, Start:: {module:: module (), Startargs:: Term ()}}
Loaded_applications (), [{application, Description, Vsn}]typesapplication = Atom ()Description = VSN = string ()Permit (application, Permission), OK | {Error, Reason} Typesapplication = Atom ()Permission = Boolean ()Reason = term ()Set_env (Application, par, Val), okset_env (application, par, Val, Opts), oktypesapplication = Par = Atom ()Val = term ()Opts = [{timeout, timeout ()} | {Persistent, Boolean ()}]Start (application), OK | {Error, Reason}Start (Application, Type)-ok | {Error, Reason} Typesapplication = Atom ()Type = restart_type () Reason = term ()Start_type (), StartType | Undefined | LocaltypesStartType = start_type () Stop (application)-OK | {Error, Reason} Typesapplication = Atom ()Reason = term ()Takeover (application, Type), OK | {Error, Reason} Typesapplication = Atom ()Type = restart_type () Reason = term ()Unload (Application)-OK | {Error, Reason} Typesapplication = Atom ()Reason = term ()Unset_env (Application, Par), OKUnset_env (Application, Par, Opts), oktypesapplication = Par = Atom ()Opts = [{timeout, timeout ()} | {Persistent, Boolean ()}]Which_applications (), [{application, Description, VSN}]Which_applications (Timeout), [{application, Description, Vsn}]typesTimeout = timeout ()application = Atom ()Description = VSN = string ()
Module:start (StartType, Startargs), {OK, Pid} | {OK, Pid, State} | {Error, Reason}
Module:start_phase (phase, StartType, Phaseargs), OK | {Error, Reason}
Module:prep_stop (state), newstate
Module:stop (state)
Module:config_change (Changed, New, removed), OK
Application export interface in Erlang