class SystemDaemon extends SystemDaemon

Daemon to process the TranslationJob queue

Properties

array $cmd_params from  SystemDaemon
$daemon_name
$module_name
mixed $view from  SystemDaemon
$sleep_between_process
int $process_counter from  SystemDaemon
mixed $mod_registry from  SystemDaemon
mixed $shutdown from  SystemDaemon
string $sleeping from  SystemDaemon
array $messages from  SystemDaemon
protected float|int $requestCacheClearingTime from  SystemDaemon
protected int $lastRequestCacheClearingTime from  SystemDaemon

Methods

__construct()

Initialize Instances

__destruct()

No description

halt()

No description

bool
isShutdown()

Returns true if the daemon process is in the shutdown phase to be ended

void
load_module_instances(mixed $module)

No description

message(string $message, string $level = Logger::INFO)

Daemon message

onStartup()

Gets called once on daemon startup Use this place to prepare daemon

process()

Process Loop

registerSignalHandler()

No description

static 
restart_all()

Restart all Daemons

signalHandler(int $signo, mixed $siginfo)

No description

start()

No description

static 
start_all(bool $if_running_on_this_node = false)

Start all Daemons

static 
stop_all(bool $if_running_on_this_node = false)

Stop all Daemons

Details

at line 17
__construct()

Initialize Instances

in SystemDaemon at line 359
__destruct()

No description

in SystemDaemon at line 332
halt()

No description

in SystemDaemon at line 224
bool isShutdown()

Returns true if the daemon process is in the shutdown phase to be ended

Return Value

bool

in SystemDaemon at line 165
void load_module_instances(mixed $module)

No description

Parameters

mixed $module

Return Value

void

Exceptions

Exception

in SystemDaemon at line 309
message(string $message, string $level = Logger::INFO)

Daemon message

Parameters

string $message

Message

string $level

Logger::XXXX

in SystemDaemon at line 324
onStartup()

Gets called once on daemon startup Use this place to prepare daemon

at line 35
process()

Process Loop

Exceptions

Exception

in SystemDaemon at line 367
protected registerSignalHandler()

No description

in SystemDaemon at line 110
static restart_all()

Restart all Daemons

in SystemDaemon at line 381
signalHandler(int $signo, mixed $siginfo)

No description

Parameters

int $signo
mixed $siginfo

in SystemDaemon at line 183
start()

No description

in SystemDaemon at line 125
static start_all(bool $if_running_on_this_node = false)

Start all Daemons

Parameters

bool $if_running_on_this_node

True will only start daemons which are known to have run on this node before they were stopped

in SystemDaemon at line 145
static stop_all(bool $if_running_on_this_node = false)

Stop all Daemons

Parameters

bool $if_running_on_this_node

True will only stop daemons which are known to run on this node