kernel/private/classes/ezpcontentpublishingqueueprocessor.php

Show: inherited
Table of Contents

File containing the ezpContentPublishingQueueProcessor class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Subpackage
content  
Version
4.6.0  

\ezpContentPublishingQueueProcessor

Package: kernel\content

This class manages the publishing queue through ezpContentPublishingProcess persistent objects

Properties

Propertyprivateint  $allowedPublishingSlots= 'null'

Allowed slots

Default valuenullDetails
Type
int
Propertyprivate  $canProcess= 'true'
Default valuetrueDetails
Type
n/a
Propertyprivate\eZINI  $contentINI= ''

Details
Type
\eZINI
Propertyprivatearray  $currentJobs= 'array()'

Currently running jobs

Default valuearray()Details
Type
array
Propertyprivate\ezpContentPublishingQueueProcessor  $instance= 'null'
static

Singleton instance of ezpContentPublishingQueueProcessor

Default valuenullDetails
Type
\ezpContentPublishingQueueProcessor
Propertyprivate\ezpAsynchronousPublisherOutput  $out= ''

Output manager

Propertyprivatecallback  $signalHandler= ''

Signal handler callback

Details
Type
callback

Methods

methodpublic__construct( ) : void

methodprivate_terminate( ) : void

methodpublicchildSignalHandler(  $signo,  $pid = null,  $status = null ) : void

Child process signal handler

Parameters
Name Type Description
$signo
$pid
$status
methodprivatecleanupDeadProcesses( ) : void

Checks WORKING processes, and removes from the queue those who are dead

methodpublicinstance( ) : \ezpContentPublishingQueueProcessor
static

Singleton class loader

Returns
Type Description
\ezpContentPublishingQueueProcessor
methodprivateisSlotAvailable( ) : \ezpContentPublishingQueueProcessor

Checks if a publishing slot is available

Returns
Type Description
\ezpContentPublishingQueueProcessor
methodprivateregisterSignalHandler( ) : void

Set the process signal handler

methodpublicrun( ) : void

Main method: infinite method that monitors queued objects, and starts the publishinbg processes if allowed

methodpublicsetOutput( \ezpAsynchronousPublisherOutput $output ) : void

Sets the used output class

Parameters
Name Type Description
$output \ezpAsynchronousPublisherOutput
methodpublicsetSignalHandler( callback $signalHandler ) : void

Sets the signal handler to $signalHandler

Parameters
Name Type Description
$signalHandler callback
methodpublicterminate( ) : void
static

Stops processing the queue, and cleanup what's currently running

Documentation was generated by DocBlox 0.18.1.