class DocumentIndexDaemonLegacy

Traits

Constants

private QUEUE_CHECK_INTERVAL

private SQL_GENERIC_LIMIT

private CLUSTERS_PER_THREAD

private JOBS_PER_THREAD

private HOOKS_PER_THREAD

private SAMPLE_USER_EVALUATIONS_PER_PROCESS

Properties

xm_system_admin $mod

Methods

__construct(SystemDaemon $DaemonControllerObject)

DocumentIndexDaemonLegacy constructor.

logThreadStatus($message)

No description

prepare()

Initializes the index process.

bool
process()

Starts the document index process.

processCluster()

Populate Cluster

processClusterEval()

Process Cluster Eval

processClusterEvalDocuments(int $sampleUserId, array $jobs)

This method is the callback for a threaded process to evaluate document index policy cluster.

processDocumentIndexByHooks(DocumentIndex $document_index, mixed $status, mixed $user_id)

Loads all index hooks and executes them to process the document index.

processHooks()

Process Hooks

processIndex()

This step performs sorting for deletion and update on queued document indexes and jobs as preparation for the actual indexing.

processMaintenance()

Run various Maintenance Tasks

Details

at line 79
__construct(SystemDaemon $DaemonControllerObject)

DocumentIndexDaemonLegacy constructor.

Parameters

SystemDaemon $DaemonControllerObject

at line 205
logThreadStatus($message)

No description

Parameters

$message

at line 89
prepare()

Initializes the index process.

Prepares the process by requeue jobs in case of a restart/crash, create missing document indexes and delete all old document indexes in batch mode.

at line 107
bool process()

Starts the document index process.

This method executes the index, cluster and hook process in single threads at the same time but only with one running thread per process type. Every time a threaded process stops, a new thread of this type is started at next call of this method.

Return Value

bool

at line 320
processCluster()

Populate Cluster

at line 424
processClusterEval()

Process Cluster Eval

at line 542
processClusterEvalDocuments(int $sampleUserId, array $jobs)

This method is the callback for a threaded process to evaluate document index policy cluster.

Parameters

int $sampleUserId
array $jobs

in DaemonHelperTrait at line 19
processDocumentIndexByHooks(DocumentIndex $document_index, mixed $status, mixed $user_id)

Loads all index hooks and executes them to process the document index.

Parameters

DocumentIndex $document_index
mixed $status
mixed $user_id

at line 584
processHooks()

Process Hooks

at line 233
processIndex()

This step performs sorting for deletion and update on queued document indexes and jobs as preparation for the actual indexing.

at line 212
processMaintenance()

Run various Maintenance Tasks