dev-master
9999999-devDynamically scalable daemons manager
MIT
The Requires
by Aram Baghdasaryan
daemon react
v0.1.0
0.1.0.0Dynamically scalable daemons manager
MIT
The Requires
by Aram Baghdasaryan
daemon react
Wallogit.com
2017 © Pedro Peláez
Dynamically scalable daemons manager
The Mother of Deamons, (*1)
Here is an example of MotherOfDaemons which runs two daemons and manage them depends on their configuration, (*2)
See also the examples., (*3)
<?php
use Jiromm\MotherOfDaemons\MotherOfDaemons;
use Jiromm\MotherOfDaemons\Daemon\DaemonCollection;
use Jiromm\MotherOfDaemons\Exception\MotherOfDaemonException;
use Examples\ImageHandlerDaemon;
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../examples/ImageHandlerDaemon.php';
try {
$daemons = new DaemonCollection();
$daemons->add(new ImageHandlerDaemon('buildings'));
$daemons->add(new ImageHandlerDaemon('animals'));
$mod = new MotherOfDaemons($daemons);
$mod->run(true);
} catch (MotherOfDaemonException $e) {
echo $e->getMessage() . PHP_EOL;
}
Dynamically scalable daemons manager
MIT
daemon react
Dynamically scalable daemons manager
MIT
daemon react