Copyright © 2009-2010 Marc Worrell
Behaviours: gen_server.
Authors: Marc Worrell (marc@worrell.nl).
code_change/3 | Convert process state when code is changed. |
get_fallback_site/0 | Return the name of the site to handle unknown Host requests. |
get_site_config/1 | Fetch the configuration of a specific site. |
get_site_contexts/0 | Return a list of contexts initialized for all active sites. |
get_sites/0 | Return a list of active site names. |
get_sites_all/0 | Return a list of all site names. |
get_sites_status/0 | Return a list of all sites and their status. |
handle_call/3 | Return the active sites. |
handle_cast/2 | Sync known sites with loaded sites. |
handle_info/2 | Handling all non call/cast messages. |
init/1 | Initiates the server. |
restart/1 | Restart a site. |
start/1 | Start a site. |
start_link/0 | Starts the server. |
stop/1 | Stop a site. |
terminate/2 | This function is called by a gen_server when it is about to terminate. |
update_dispatchinfo/0 | Update the webmachine dispatch information. |
upgrade/0 | Sync the supervised sites with the sites in the sites directory. |
code_change(OldVsn, State, Extra) -> {ok, NewState}
Convert process state when code is changed
get_fallback_site() -> atom() | undefined
Return the name of the site to handle unknown Host requests
get_site_config(Site::atom()) -> SiteProps::list() | {error, Reason}
Fetch the configuration of a specific site.
get_site_contexts() -> [Context]
Return a list of contexts initialized for all active sites.
get_sites() -> [atom()]
Return a list of active site names.
get_sites_all() -> [atom()]
Return a list of all site names.
get_sites_status() -> PropList
Return a list of all sites and their status.
handle_call(Message::Request, From, State) -> {reply, Reply, State} | {reply, Reply, State, Timeout} | {noreply, State} | {noreply, State, Timeout} | {stop, Reason, Reply, State} | {stop, Reason, State}
Return the active sites
handle_cast(Message::Msg, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}
Sync known sites with loaded sites
handle_info(Info, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}
Handling all non call/cast messages
init(X1::Args) -> {ok, State} | {ok, State, Timeout} | ignore | {stop, Reason}
Initiates the server.
restart(Site) -> any()
Restart a site.
start(Site) -> any()
Start a site.
start_link() -> {ok, Pid} | ignore | {error, Error}
Starts the server
stop(Site) -> any()
Stop a site.
terminate(Reason, State) -> void()
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.
update_dispatchinfo() -> any()
Update the webmachine dispatch information. Collects dispatch information from all sites and sends it to webmachine for updating its dispatch lists and host information.
upgrade() -> any()
Sync the supervised sites with the sites in the sites directory. Removes and stops deleted sites, adds (but does not start) new sites.
Generated by EDoc, Feb 25 2011, 21:14:41.