API17

JDaemon: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Updated to r1448:247ba8d88526
m preparing for archive only
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
=={{JVer|11.1}} JDaemon==
=={{JVer|11.1}} JDaemon==
===Description===
===Description===
{{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 14: Line 12:
|-
|-
|public  
|public  
|[[JDaemon::isActive/11.1|isActive]]
|[[API17:JDaemon::isActive|isActive]]
|Check to see if the daemon is active.  
|Check to see if the daemon is active.  
|-
|-
|public  
|public  
|[[JDaemon::loadConfiguration/11.1|loadConfiguration]]
|[[API17:JDaemon::loadConfiguration|loadConfiguration]]
|Load an object or array into the application configuration object.  
|Load an object or array into the application configuration object.  
|-
|-
|public  
|public  
|[[JDaemon::restart/11.1|restart]]
|[[API17:JDaemon::restart|restart]]
|Restart daemon process.  
|Restart daemon process.  
|-
|-
|public  
|public  
|[[JDaemon::start/11.1|start]]
|[[API17:JDaemon::start|start]]
|Spawn daemon process.  
|Spawn daemon process.  
|-
|-
|public  
|public  
|[[JDaemon::stop/11.1|stop]]
|[[API17:JDaemon::stop|stop]]
|Stop daemon process.  
|Stop daemon process.  
|-
|-
|public static  
|public static  
|[[JDaemon::signal/11.1|signal]]
|[[API17:JDaemon::signal|signal]]
|Method to handle POSIX signals.  
|Method to handle POSIX signals.  
|-
|-
|protected  
|protected  
|[[JDaemon::__construct/11.1|__construct]]
|[[API17:JDaemon::__construct|__construct]]
|Class constructor.  
|Class constructor.  
|-
|-
|protected  
|protected  
|[[JDaemon::changeIdentity/11.1|changeIdentity]]
|[[API17:JDaemon::changeIdentity|changeIdentity]]
|Method to change the identity of the daemon process and resources.  
|Method to change the identity of the daemon process and resources.  
|-
|-
|protected  
|protected  
|[[JDaemon::daemonize/11.1|daemonize]]
|[[API17:JDaemon::daemonize|daemonize]]
|Method to put the application into the background.  
|Method to put the application into the background.  
|-
|-
|protected  
|protected  
|[[JDaemon::fork/11.1|fork]]
|[[API17:JDaemon::fork|fork]]
|This is truly where the magic happens.  
|This is truly where the magic happens.  
|-
|-
|protected  
|protected  
|[[JDaemon::gc/11.1|gc]]
|[[API17:JDaemon::gc|gc]]
|Method to perform basic garbage collection and memory management in the sense of clearing the stat cache.  
|Method to perform basic garbage collection and memory management in the sense of clearing the stat cache.  
|-
|-
|protected  
|protected  
|[[JDaemon::setupSignalHandlers/11.1|setupSignalHandlers]]
|[[API17:JDaemon::setupSignalHandlers|setupSignalHandlers]]
|Method to attach the  signal handler to the known signals.  
|Method to attach the  signal handler to the known signals.  
|-
|-
|protected  
|protected  
|[[JDaemon::shutdown/11.1|shutdown]]
|[[API17:JDaemon::shutdown|shutdown]]
|Method to shut down the daemon and optionally restart it.  
|Method to shut down the daemon and optionally restart it.  
|-
|-
|protected  
|protected  
|[[JDaemon::writeProcessIdFile/11.1|writeProcessIdFile]]
|[[API17:JDaemon::writeProcessIdFile|writeProcessIdFile]]
|Method to write the process id file out to disk.  
|Method to write the process id file out to disk.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/application/cli/daemon.php
* '''Defined in''' libraries/joomla/application/cli/daemon.php
* '''Extends''' [[JCli/11.1|JCli]]
* '''Extends''' [[API17:JCli|JCli]]
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.application.cli.daemon' );</source>
<source lang="php">jimport( 'joomla.application.cli.daemon' );</source>
===See also===
===See also===
* {{JVer|11.1}} '''JDaemon source code''' on [[jplatform:application/cli/daemon.php|BitBucket]]
* {{JVer|11.1}} '''JDaemon source code''' on [[jplatform:application/cli/daemon.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[JDaemon|Other versions of JDaemon]]
* [[API17:JDaemon|Other versions of JDaemon]]
{{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 />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JDaemon
category=JDaemon
category=CodeExample
namespace=CodeExample
category=ClassExample
category=ClassExample
include=*
include=*
Line 93: Line 89:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JDaemon]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:32, 25 March 2017

Joomla 11.1 JDaemon

Description

Methods

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

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

See also


User contributed notes

Code Examples