Forex.Supervisor (Forex v0.2.1)
View SourceSupervisor for the Forex supervision tree.
The Forex.Supervisor
module is responsible for supervising the Forex.Fetcher
process, .ie., starting, stopping, and restarting the process.
The Forex.Supervisor
accepts the following options:
auto_start
- A boolean value that determines if the fetcher process should be started automatically when the supervisor is started. The default value istrue
.use_cache
- A boolean value that determines if the cache should be used. The default value istrue
.
Summary
Functions
Returns a specification to start this module under a supervisor.
Delete the Forex exchange rate fetcher process from the supervisor.
Check if the Forex exchange rate fetcher process has been initiated.
Check if the Forex exchange rate fetcher process is running.
Get the status of the Forex exchange rate fetcher process.
If the process is running, it returns :running
,
if it has been initiated but not running, it returns :stopped
,
otherwise, it returns :not_started
.
Restart the stoped Forex exchange rate fetcher process.
Start the Forex exchange rate fetcher process.
Stop the Forex exchange rate fetcher process.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Delete the Forex exchange rate fetcher process from the supervisor.
Check if the Forex exchange rate fetcher process has been initiated.
Check if the Forex exchange rate fetcher process is running.
Get the status of the Forex exchange rate fetcher process.
If the process is running, it returns :running
,
if it has been initiated but not running, it returns :stopped
,
otherwise, it returns :not_started
.
Restart the stoped Forex exchange rate fetcher process.
Start the Forex exchange rate fetcher process.
Stop the Forex exchange rate fetcher process.