This module implements the main global server in EVA. The
client API towards this server is defined in the module
eva
. The functions in this module are used to start the
service.
create_tables(Nodes) -> void()
Nodes = [node()]
This function creates the Mnesia tables required for the
eva_server
. Nodes
is a list of nodes where
the tables should be replicated. This list of nodes should
specify the same nodes where the application EVA can be run
distributed, so that EVA always can have local access to
the tables.
This function should be called once when installing the EVA application in the system.
start_link() -> {ok, Pid} | {error, Reason}
Starts the eva server. This function can be used to
include the server in a supervisor. Normally, functions
in the supervisor eva_sup
can be used instead.
The function create_tables/1
must have been called
before the server is started.
eva(3), eva_sup(3)