eZPublishCommunityProject(LegacyStack)  2013.6
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...
 
 setSignalHandler ($signalHandler)
 Sets the signal handler to $signalHandler. 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...
 
 registerSignalHandler ()
 Set the process signal handler. More...
 

Private Attributes

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

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::registerSignalHandler ( )
private

Set the process signal handler.

ezpContentPublishingQueueProcessor::setOutput ( ezpAsynchronousPublisherOutput  $output)

Sets the used output class.

Parameters
ezpAsynchronousPublisherOutput$output
Returns
void

Referenced by __construct().

ezpContentPublishingQueueProcessor::setSignalHandler (   $signalHandler)

Sets the signal handler to $signalHandler.

Parameters
callback$signalHandler
\
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
ezpContentPublishingQueueProcessor::$signalHandler
private

Referenced by setSignalHandler().


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