eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZScriptClusterPurge

class eZScriptClusterPurge

This class handles purging of cluster items.

It is used by both the script and cronjob.

Performance note: this procedure should be quite nice to the server memory wise. It has been monitored as reaching about 5MB memory usage on a thousand items, and ended up with an almost constant usage. No particular setting should therefore be required to run it.

Constants

LOG_FILE

Properties

bool $ptDryRun booloptDryRun
int $ptIterationLimit intoptIterationLimit
int $ptIterationSleep intoptIterationSleep
bool $ptMemoryMonitoring booloptMemoryMonitoring
array(string) $ptScopes array(string)optScopes
int $ptExpiry intoptExpiry

Methods

__construct()

static bool isRequired()

Performs preliminary checks in order to ensure the process can be started: - does the active cluster handler require purging of binary files

run()

Executes the purge operation

__get($propertyName)

__set($propertyName, $propertyValue)

monitor($text)

Details

at line 32
public __construct()

at line 51
static public bool isRequired()

Performs preliminary checks in order to ensure the process can be started: - does the active cluster handler require purging of binary files

Return Value

bool

at line 64
public run()

Executes the purge operation

at line 116
public __get($propertyName)

Parameters

$propertyName

at line 159
public __set($propertyName, $propertyValue)

Parameters

$propertyName
$propertyValue

at line 195
public monitor($text)

Parameters

$text