eZ Publish  [trunk]
eZClusterFileHandler Class Reference

List of all members.

Static Public Member Functions

static addGeneratingFile ($file)
 Adds a file to the generating list.
static cleanupEmptyDirectories ($path)
 Goes trough the directory path and removes empty directories, starting at the leaf and deleting down until a non empty directory is reached.
static cleanupGeneratingFiles ()
 Cluster shutdown handler.
static instance ($filename=false)
 Returns the configured instance of an eZClusterFileHandlerInterface See ClusteringSettings.FileHandler in file.ini.
static preFork ()
 Performs required operations before forking a process.
static removeGeneratingFile ($file)
 Removes a file from the generating list.
static resetHandler ()
 Resets the handler so that a new one can be loaded.
static searchPathArray ()

Static Public Attributes

static $globalHandler

Static Private Attributes

static $generatingFiles = array()
static $isShutdownFunctionRegistered = false

Detailed Description

Special failure object which can be used by some of the cluster functions to inform about failures or special exceptions.

Currently used by the *processCache* function to report that the retrieve callback failed to retrieve data because of expiration.

Definition at line 10 of file ezclusterfilehandler.php.


Member Function Documentation

static eZClusterFileHandler::addGeneratingFile ( file) [static]

Adds a file to the generating list.

Parameters:
eZDFSFileHandler | eZDFSFileHandler$fileCluster file handler instance Note that this method expect a version of the handler where the filePath is the REAL one, not the .generating

Definition at line 150 of file ezclusterfilehandler.php.

Referenced by eZFS2FileHandler\startCacheGeneration(), eZDBFileHandler\startCacheGeneration(), and eZDFSFileHandler\startCacheGeneration().

static eZClusterFileHandler::cleanupEmptyDirectories ( path) [static]

Goes trough the directory path and removes empty directories, starting at the leaf and deleting down until a non empty directory is reached.

If the path is not a directory, nothing will happen.

Parameters:
string$path

Definition at line 131 of file ezclusterfilehandler.php.

Referenced by eZDFSFileHandlerDFSBackend\delete(), eZFSFileHandler\delete(), eZFS2FileHandler\deleteLocal(), eZDBFileHandler\deleteLocal(), eZDFSFileHandler\deleteLocal(), eZDBFileHandler\fileDeleteLocal(), eZDFSFileHandler\fileDeleteLocal(), eZFS2FileHandler\purge(), eZFSFileHandler\purge(), eZDBFileHandler\purge(), eZDFSFileHandler\purge(), and eZDFSFileHandlerDFSBackend\renameOnDFS().

Cluster shutdown handler.

Terminates generation for unterminated files. This situation doesn't happen by default, but may with custom code that doesn't follow recommendations.

Definition at line 106 of file ezclusterfilehandler.php.

Referenced by resetHandler().

static eZClusterFileHandler::instance ( filename = false) [static]

Returns the configured instance of an eZClusterFileHandlerInterface See ClusteringSettings.FileHandler in file.ini.

Parameters:
string | bool$filenameOptional filename the handler should be initialized with
Returns:
eZClusterFileHandlerInterface

Definition at line 21 of file ezclusterfilehandler.php.

Referenced by eZImageAliasHandler\aliasList(), eZPackage\appendSimpleFile(), eZPHPCreator\canRestore(), eZContentCache\cleanup(), eZCache\clearClassID(), eZCache\clearDesignBaseCache(), eZCache\clearItem(), eZCache\clearSortKey(), eZCache\clearStateLimitations(), eZCache\clearTextToImageCache(), contentPDFPassthrough(), ezpRestCacheStorageCluster\countDataItems(), ezpRestCacheStorageCluster\delete(), eZMediaType\deleteStoredObjectAttribute(), eZBinaryFileType\deleteStoredObjectAttribute(), eZContentCache\exists(), eZPHPCreator\exists(), eZContentLanguage\expireCache(), eZContentLanguage\fetchList(), eZWebDAVContentServer\fetchNodeInfo(), eZWebDAVContentBackend\fetchNodeInfo(), eZMediaType\fetchObjectAttributeHTTPInput(), eZBinaryFileType\fetchObjectAttributeHTTPInput(), eZBinaryFile\fileSize(), eZMedia\fileSize(), eZNodeviewfunctions\generateNodeView(), ezpRestCacheStorageCluster\getRemainingLifetime(), eZWebDAVContentBackend\getResourceContents(), eZTemplateCacheBlock\handle(), eZTemplateImageOperator\hasImage(), eZImageAliasHandler\imageAlias(), eZImageAliasHandler\initialize(), eZBinaryFileType\insertHTTPFile(), eZMediaType\insertHTTPFile(), eZBinaryFileType\insertRegularFile(), eZMediaType\insertRegularFile(), eZScriptClusterPurge\isRequired(), eZURLWildcard\loadCacheFile(), eZTemplateImageOperator\loadImage(), eZBinaryFile\metaData(), eZPDF\modify(), eZWebDAVContentServer\outputSendDataToClient(), preFork(), eZTemplateCacheFunction\processCached(), ezpContentPublishingProcess\publish(), eZImageAliasHandler\purgeAllAliases(), eZCache\purgeTextToImageCache(), eZImageAliasHandler\recreateDOMTree(), eZImageAliasHandler\removeAliases(), eZImageAliasHandler\removeAllAliases(), eZSubtreeCache\removeExpiryCacheFromDisk(), eZContentCache\restore(), ezpRestCacheStorageCluster\restore(), eZPHPCreator\restore(), eZImageType\restoreTrashedObjectAttribute(), eZScriptClusterPurge\run(), searchPathArray(), eZTemplateImageOperator\setLoadImage(), ezpRestCacheStorageCluster\store(), eZContentCache\store(), eZTemplateImageOperator\storeImage(), eZRSSEditFunction\storeRSSExport(), eZImageType\trashStoredObjectAttribute(), eZMediaType\trashStoredObjectAttribute(), eZBinaryFileType\trashStoredObjectAttribute(), eZBinaryFileType\unserializeContentObjectAttribute(), eZMediaType\unserializeContentObjectAttribute(), eZImageAliasHandler\updateAliasPath(), and eZPHPCreator\writeChunks().

static eZClusterFileHandler::preFork ( ) [static]

Performs required operations before forking a process.

  • disconnects DB based cluster handlers from the database

Definition at line 184 of file ezclusterfilehandler.php.

Referenced by ezpContentPublishingProcess\publish().

static eZClusterFileHandler::removeGeneratingFile ( file) [static]

Removes a file from the generating list.

Parameters:
eZDBFileHandler | eZDFSFileHandler$fileCluster file handler instance Note that this method expect a version of the handler where the filePath is the REAL one, not the .generating
Todo:
Clustering: apply the eZClusterFileHandlerInterface to all cluster handlers

Definition at line 168 of file ezclusterfilehandler.php.

Referenced by eZFS2FileHandler\abortCacheGeneration(), eZDBFileHandler\abortCacheGeneration(), eZDFSFileHandler\abortCacheGeneration(), cleanupGeneratingFiles(), eZFS2FileHandler\endCacheGeneration(), eZDBFileHandler\endCacheGeneration(), and eZDFSFileHandler\endCacheGeneration().

Resets the handler so that a new one can be loaded.

Definition at line 67 of file ezclusterfilehandler.php.

Deprecated:
4.3 No longer used as we rely on ezpExtension & autoloads
Returns:
array list of directories used to search cluster file handlers for

Definition at line 77 of file ezclusterfilehandler.php.


Member Data Documentation

eZClusterFileHandler::$generatingFiles = array() [static, private]

Definition at line 202 of file ezclusterfilehandler.php.

eZClusterFileHandler::$globalHandler [static]

Definition at line 214 of file ezclusterfilehandler.php.

Referenced by instance().

eZClusterFileHandler::$isShutdownFunctionRegistered = false [static, private]

Definition at line 208 of file ezclusterfilehandler.php.


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