API17

Difference between revisions of "JDaemon"

From Joomla! Documentation

m (moving preparation)
m (clean up)
Line 2: Line 2:
 
=={{JVer|11.1}} JDaemon==
 
=={{JVer|11.1}} JDaemon==
 
===Description===
 
===Description===
{{Description:JDaemon}}
+
{{subst:Description:JDaemon}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JDaemon|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 78: Line 76:
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
 
* [[API17:JDaemon|Other versions of JDaemon]]
 
* [[API17:JDaemon|Other versions of JDaemon]]
{{SeeAlso:JDaemon}}
+
{{subst:SeeAlso:JDaemon}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JDaemon|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />

Revision as of 09:57, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDaemon[edit]

Description[edit]

{{subst:Description:JDaemon}}

Methods[edit]

Visibility Method name Description
public isActive Check to see if the daemon is active.
public loadConfiguration Load an object or array into the application configuration object.
public restart Restart daemon process.
public start Spawn daemon process.
public stop Stop daemon process.
public static signal Method to handle POSIX signals.
protected __construct Class constructor.
protected changeIdentity Method to change the identity of the daemon process and resources.
protected daemonize Method to put the application into the background.
protected fork This is truly where the magic happens.
protected gc Method to perform basic garbage collection and memory management in the sense of clearing the stat cache.
protected setupSignalHandlers Method to attach the signal handler to the known signals.
protected shutdown Method to shut down the daemon and optionally restart it.
protected writeProcessIdFile Method to write the process id file out to disk.
  • Defined in libraries/joomla/application/cli/daemon.php
  • Extends JCli

Importing[edit]

jimport( 'joomla.application.cli.daemon' );

See also[edit]

{{subst:SeeAlso:JDaemon}}

User contributed notes[edit]

<CodeExamplesForm />