Index
A
- AbstractArguments — Class in namespace Comodojo\Daemon\Console
- AbstractLocker — Class in namespace Comodojo\Daemon\Locker
- AbstractMessage — Class in namespace Comodojo\Daemon\Socket
- AbstractSocket — Class in namespace Comodojo\Daemon\Socket
- PosixSignals::any() — Method in class PosixSignals
- AbstractWorker — Class in namespace Comodojo\Daemon\Worker
C
- AbstractArguments::create() — Method in class AbstractArguments
- Static constructor
- $Daemon#console — Property in class Daemon
- AbstractSocket::connect() — Method in class AbstractSocket
- AbstractSocket::close() — Method in class AbstractSocket
- Connection — Class in namespace Comodojo\Daemon\Socket
- Connection::checkConnectionError() — Method in class Connection
- Server::create() — Method in class Server
- Server::connect() — Method in class Server
- Server::close() — Method in class Server
- Server::clean() — Method in class Server
- SocketTransport::create() — Method in class SocketTransport
- SocketTransport::connect() — Method in class SocketTransport
- SocketTransport::close() — Method in class SocketTransport
- Checks — Class in namespace Comodojo\Daemon\Utils
- Checks::cli() — Method in class Checks
- Check if script is running from command line
- PosixSignals::call() — Method in class PosixSignals
- Loop::count() — Method in class Loop
- SharedMemory::close() — Method in class SharedMemory
- Worker::create() — Method in class Worker
D
- $AbstractArguments#data — Property in class AbstractArguments
- DaemonArguments — Class in namespace Comodojo\Daemon\Console
- $DaemonArguments#data — Property in class DaemonArguments
- Default daemon's cli arguments.
- Daemon — Class in namespace Comodojo\Daemon
- $Daemon#default_properties — Property in class Daemon
- Daemon::daemonize() — Method in class Daemon
- Start as a daemon, forking main process and detaching it from terminal
- Daemon::declass() — Method in class Daemon
- Connection::destroy() — Method in class Connection
- $Greeter#data — Property in class Greeter
- $Request#data — Property in class Request
- $Response#data — Property in class Response
- $PosixSignals#data — Property in class PosixSignals
- SharedMemory::delete() — Method in class SharedMemory
E
- AbstractArguments::export() — Method in class AbstractArguments
- Export data as array
- LogHandler::excludeContext() — Method in class LogHandler
- Turn off context writer
- Process::end() — Method in class Process
- Stop current process execution.
G
- Daemon::getSocket() — Method in class Daemon
- Daemon::getWorkers() — Method in class Daemon
- PosixEvent::getProcess() — Method in class PosixEvent
- SocketEvent::getProcess() — Method in class SocketEvent
- WorkerEvent::getLoop() — Method in class WorkerEvent
- WorkerEvent::getWorker() — Method in class WorkerEvent
- AbstractSocket::getSocket() — Method in class AbstractSocket
- AbstractSocket::getSocketError() — Method in class AbstractSocket
- Connection::getIndex() — Method in class Connection
- Connection::getSocket() — Method in class Connection
- Greeter — Class in namespace Comodojo\Daemon\Socket
- Server::getRpcServer() — Method in class Server
- PidTrait::getPid() — Method in class PidTrait
- Get current PID.
- SignalsTrait::getSignals() — Method in class SignalsTrait
- ProcessTools::getNiceness() — Method in class ProcessTools
- Get niceness of a running process
- ProcessTools::getPid() — Method in class ProcessTools
- Get current process PID
- AbstractWorker::getName() — Method in class AbstractWorker
- Get worker name.
- AbstractWorker::getId() — Method in class AbstractWorker
- Get worker id (unique).
- Manager::get() — Method in class Manager
- SharedMemory::getKey() — Method in class SharedMemory
- Worker::getInstance() — Method in class Worker
- Worker::getLooptime() — Method in class Worker
- Worker::getForever() — Method in class Worker
- Worker::getInputChannel() — Method in class Worker
- Worker::getOutputChannel() — Method in class Worker
- WorkerInterface::getId() — Method in class WorkerInterface
- Get worker id (unique).
- WorkerInterface::getName() — Method in class WorkerInterface
- Get worker name.
H
- PauseWorker::handle() — Method in class PauseWorker
- ResumeWorker::handle() — Method in class ResumeWorker
- StopDaemon::handle() — Method in class StopDaemon
- StopWorker::handle() — Method in class StopWorker
- WorkerWatchdog::handle() — Method in class WorkerWatchdog
- $AbstractSocket#handler — Property in class AbstractSocket
I
- LogHandler::includeContext() — Method in class LogHandler
- Turn on context writer
- $Daemon#is_active — Property in class Daemon
- $Daemon#is_supervisor — Property in class Daemon
- Daemon::init() — Method in class Daemon
- Parse console arguments and init the daemon
- $Connection#index — Property in class Connection
- MethodsInjector::inject() — Method in class MethodsInjector
- ProcessTools::isRunning() — Method in class ProcessTools
- Return true if process is still running, false otherwise
- Manager::install() — Method in class Manager
- Install a worker into the stack
- Manager::isInstalled() — Method in class Manager
- $Worker#instance — Property in class Worker
- $Worker#is_forever — Property in class Worker
- $Worker#input_channel — Property in class Worker
K
- ProcessTools::kill() — Method in class ProcessTools
- Kill a process
L
- LogHandler — Class in namespace Comodojo\Daemon\Console
- $WorkerEvent#loop — Property in class WorkerEvent
- AbstractLocker::lock() — Method in class AbstractLocker
- PidLock::lock() — Method in class PidLock
- Server::listen() — Method in class Server
- Server::loop() — Method in class Server
- AbstractWorker::loop() — Method in class AbstractWorker
- The worker loop
- Loop — Class in namespace Comodojo\Daemon\Worker
- $Worker#looptime — Property in class Worker
- WorkerInterface::loop() — Method in class WorkerInterface
- The worker loop
M
- $AbstractMessage#mode — Property in class AbstractMessage
- MethodsInjector — Class in namespace Comodojo\Daemon\Socket
- $Server#max_connections — Property in class Server
- Checks::multithread() — Method in class Checks
- Check if php interpreter supports pcntl_fork (required in multithread mode)
- PosixSignals::mask() — Method in class PosixSignals
- Manager — Class in namespace Comodojo\Daemon\Worker
O
- PosixSignals::on() — Method in class PosixSignals
- $Worker#output_channel — Property in class Worker
P
- $Daemon#pidlock — Property in class Daemon
- PosixEvent — Class in namespace Comodojo\Daemon\Events
- $PosixEvent#process — Property in class PosixEvent
- $SocketEvent#process — Property in class SocketEvent
- PauseWorker — Class in namespace Comodojo\Daemon\Listeners
- PidLock — Class in namespace Comodojo\Daemon\Locker
- Process — Class in namespace Comodojo\Daemon
- SocketTransport::performCall() — Method in class SocketTransport
- {@inheritdoc}
- PidTrait — Class in namespace Comodojo\Daemon\Traits
- $PidTrait#pid — Property in class PidTrait
- Current PID
- PosixSignals — Class in namespace Comodojo\Daemon\Utils
- $PosixSignals#pointer — Property in class PosixSignals
- ProcessTools — Class in namespace Comodojo\Daemon\Utils
- Loop::pause() — Method in class Loop
- Manager::pause() — Method in class Manager
R
- ResumeWorker — Class in namespace Comodojo\Daemon\Listeners
- AbstractLocker::release() — Method in class AbstractLocker
- AbstractLocker::readLock() — Method in class AbstractLocker
- AbstractLocker::releaseLock() — Method in class AbstractLocker
- PidLock::release() — Method in class PidLock
- $AbstractSocket#read_buffer — Property in class AbstractSocket
- Request — Class in namespace Comodojo\Daemon\Socket
- Response — Class in namespace Comodojo\Daemon\Socket
- $Server#rpc_server — Property in class Server
- SocketTransport::read() — Method in class SocketTransport
- SocketTransport::readGreeter() — Method in class SocketTransport
- SocketTransport::rawRead() — Method in class SocketTransport
- Loop::resume() — Method in class Loop
- Manager::resume() — Method in class Manager
- Manager::running() — Method in class Manager
- SharedMemory::read() — Method in class SharedMemory
S
- $Daemon#socket — Property in class Daemon
- Daemon::setup() — Method in class Daemon
- Setup method; it allows to inject code BEFORE the daemon spinup
- Daemon::start() — Method in class Daemon
- Start the process, creating socket and spinning up workers (if any)
- Daemon::stop() — Method in class Daemon
- SocketEvent — Class in namespace Comodojo\Daemon\Events
- StopDaemon — Class in namespace Comodojo\Daemon\Listeners
- StopWorker — Class in namespace Comodojo\Daemon\Listeners
- Process::signalToEvent() — Method in class Process
- The generic signal handler.
- AbstractMessage::serialize() — Method in class AbstractMessage
- $AbstractSocket#socket — Property in class AbstractSocket
- $AbstractSocket#socket_domain — Property in class AbstractSocket
- $AbstractSocket#socket_type — Property in class AbstractSocket
- $AbstractSocket#socket_protocol — Property in class AbstractSocket
- $AbstractSocket#socket_resource — Property in class AbstractSocket
- $AbstractSocket#socket_port — Property in class AbstractSocket
- AbstractSocket::setSocket() — Method in class AbstractSocket
- AbstractSocket::setHandler() — Method in class AbstractSocket
- $Connection#socket — Property in class Connection
- Server — Class in namespace Comodojo\Daemon\Socket
- Server::stop() — Method in class Server
- SocketTransport — Class in namespace Comodojo\Daemon\Socket
- SocketTransport::send() — Method in class SocketTransport
- PidTrait::setPid() — Method in class PidTrait
- Set current PID.
- SignalsTrait — Class in namespace Comodojo\Daemon\Traits
- $SignalsTrait#signals — Property in class SignalsTrait
- SignalsTrait::setSignals() — Method in class SignalsTrait
- Checks::signals() — Method in class Checks
- Check if php interpreter supports pcntl signal handlers
- PosixSignals::sigNo() — Method in class PosixSignals
- PosixSignals::sigName() — Method in class PosixSignals
- PosixSignals::setDefault() — Method in class PosixSignals
- ProcessTools::signal() — Method in class ProcessTools
- ProcessTools::setNiceness() — Method in class ProcessTools
- Set niceness of a running process
- AbstractWorker::spinup() — Method in class AbstractWorker
- Spinup worker
- AbstractWorker::spindown() — Method in class AbstractWorker
- Spindown worker
- Loop::start() — Method in class Loop
- Loop::stop() — Method in class Loop
- Manager::setPid() — Method in class Manager
- Manager::start() — Method in class Manager
- Manager::stop() — Method in class Manager
- Manager::status() — Method in class Manager
- SharedMemory — Class in namespace Comodojo\Daemon\Worker
- SharedMemory::send() — Method in class SharedMemory
- Worker::setInstance() — Method in class Worker
- Worker::setLooptime() — Method in class Worker
- Worker::setForever() — Method in class Worker
- Worker::setInputChannel() — Method in class Worker
- Worker::setOutputChannel() — Method in class Worker
- WorkerInterface::spinup() — Method in class WorkerInterface
- Spinup worker
- WorkerInterface::spindown() — Method in class WorkerInterface
- Spindown worker
T
- ProcessTools::term() — Method in class ProcessTools
- Terminate a process, asking PID to terminate or killing it directly.
- Loop::ticker() — Method in class Loop
U
- AbstractMessage::unserialize() — Method in class AbstractMessage
- PosixSignals::unmask() — Method in class PosixSignals
W
- LogHandler::write() — Method in class LogHandler
- Record's writer
- $Daemon#workers — Property in class Daemon
- WorkerEvent — Class in namespace Comodojo\Daemon\Events
- $WorkerEvent#worker — Property in class WorkerEvent
- WorkerWatchdog — Class in namespace Comodojo\Daemon\Listeners
- AbstractLocker::writeLock() — Method in class AbstractLocker
- SocketTransport::write() — Method in class SocketTransport
- Worker — Class in namespace Comodojo\Daemon\Worker
- WorkerInterface — Class in namespace Comodojo\Daemon\Worker
_
- LogHandler::__construct() — Method in class LogHandler
- Class constructor
- Daemon::__construct() — Method in class Daemon
- Daemon constructor
- PosixEvent::__construct() — Method in class PosixEvent
- SocketEvent::__construct() — Method in class SocketEvent
- WorkerEvent::__construct() — Method in class WorkerEvent
- PidLock::__construct() — Method in class PidLock
- Process::__construct() — Method in class Process
- Build the process
- AbstractMessage::__toString() — Method in class AbstractMessage
- AbstractSocket::__construct() — Method in class AbstractSocket
- Connection::__construct() — Method in class Connection
- Server::__construct() — Method in class Server
- PosixSignals::__construct() — Method in class PosixSignals
- AbstractWorker::__construct() — Method in class AbstractWorker
- Loop::__construct() — Method in class Loop
- Manager::__construct() — Method in class Manager
- Manager constructor
- SharedMemory::__construct() — Method in class SharedMemory