View Source espace_sup (espace v0.9.0)

Main espace application supervisor. It handles the main application components.

There are three child components, all are gen_servers. Two are the main application servers, and the third is the etsmgr application in embedded mode, i.e. there is no separate etsmgr application. We also make sure that etsmgr_srv is the first child to be started as the other two servers depend on this server.

For the child specification, we rely on the default settings of:
     restart  => permanent,
     shutdown => 5000,
     type     => worker
   

Summary

Functions

Starts the main supervisor.

Functions

start_link(Inst_name)

-spec start_link(atom()) -> supervisor:startlink_ret().

Starts the main supervisor.

We expect an espace instance name, which will uniquely identify all the components of the application.