eZPublish  4.5
ezpContentPublishingQueueProcessor Class Reference

Public Member Functions

 __construct ()
 
 childSignalHandler ($signo, $pid=null, $status=null)
 Child process signal handler. More...
 
 setOutput (ezpAsynchronousPublisherOutput $output)
 Sets the used output class. More...
 

Static Public Member Functions

static instance ()
 Singleton class loader. More...
 
static terminate ()
 Stops processing the queue, and cleanup what's currently running. More...
 

Private Member Functions

 _terminate ()
 
 cleanupDeadProcesses ()
 Checks WORKING processes, and removes from the queue those who are dead. More...
 
 isSlotAvailable ()
 Checks if a publishing slot is available. More...
 
 setSignalHandler ()
 Set the process signal handler. More...
 

Private Attributes

 $allowedPublishingSlots = null
 
 $canProcess = true
 
 $contentINI
 
 $currentJobs = array()
 
 $out
 

Static Private Attributes

static $instance = null
 

Constructor & Destructor Documentation

ezpContentPublishingQueueProcessor::__construct ( )

Member Function Documentation

ezpContentPublishingQueueProcessor::_terminate ( )
private
ezpContentPublishingQueueProcessor::childSignalHandler (   $signo,
  $pid = null,
  $status = null 
)

Child process signal handler.

ezpContentPublishingQueueProcessor::cleanupDeadProcesses ( )
private

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

Returns
void
static ezpContentPublishingQueueProcessor::instance ( )
static

Singleton class loader.

Returns
ezpContentPublishingQueueProcessor
ezpContentPublishingQueueProcessor::isSlotAvailable ( )
private

Checks if a publishing slot is available.

Returns
ezpContentPublishingQueueProcessor
ezpContentPublishingQueueProcessor::setOutput ( ezpAsynchronousPublisherOutput  $output)

Sets the used output class.

Parameters
ezpAsynchronousPublisherOutput$output
Returns
void

Referenced by __construct().

ezpContentPublishingQueueProcessor::setSignalHandler ( )
private

Set the process signal handler.

static ezpContentPublishingQueueProcessor::terminate ( )
static

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

Referenced by daemonSignalHandler().

Member Data Documentation

ezpContentPublishingQueueProcessor::$allowedPublishingSlots = null
private
ezpContentPublishingQueueProcessor::$canProcess = true
private
ezpContentPublishingQueueProcessor::$contentINI
private
ezpContentPublishingQueueProcessor::$currentJobs = array()
private
ezpContentPublishingQueueProcessor::$instance = null
staticprivate
ezpContentPublishingQueueProcessor::$out
private

The documentation for this class was generated from the following file: