CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Sanity\AllClustersQueueingRemediator Class Reference

Remediator that forwards all actions to all writable clusters using the 'cluster' => null optimization. More...

+ Inheritance diagram for CirrusSearch\Sanity\AllClustersQueueingRemediator:
+ Collaboration diagram for CirrusSearch\Sanity\AllClustersQueueingRemediator:

Public Member Functions

 __construct (ClusterAssignment $clusterAssignment, JobQueueGroup $jobQueueGroup)
 
 canSendOptimizedJob (array $clusters)
 Checker whether or not some remediations that are scheduled for the clusters defined in $clusters can be optimized by sending a single job per remediation instead duplicated remediations per cluster.
 
 redirectInIndex (string $docId, WikiPage $page, string $indexSuffix)
 @inheritDoc
 
 pageNotInIndex (WikiPage $page)
 @inheritDoc
 
 ghostPageInIndex ( $docId, Title $title)
 @inheritDoc
 
 pageInWrongIndex ( $docId, WikiPage $page, $indexSuffix)
 @inheritDoc
 
 oldVersionInIndex ( $docId, WikiPage $page, $indexSuffix)
 @inheritDoc
 
 oldDocument (WikiPage $page)
 @inheritDoc
 

Detailed Description

Remediator that forwards all actions to all writable clusters using the 'cluster' => null optimization.

See also
\CirrusSearch\Job\CirrusGenericJob::decideClusters()

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Sanity\AllClustersQueueingRemediator::__construct ( ClusterAssignment $clusterAssignment,
JobQueueGroup $jobQueueGroup )
Parameters
ClusterAssignment$clusterAssignment
JobQueueGroup$jobQueueGroup

Member Function Documentation

◆ canSendOptimizedJob()

CirrusSearch\Sanity\AllClustersQueueingRemediator::canSendOptimizedJob ( array $clusters)

Checker whether or not some remediations that are scheduled for the clusters defined in $clusters can be optimized by sending a single job per remediation instead duplicated remediations per cluster.

Parameters
array$clustersList of clusters affected by a remediation
Returns
bool true if the list of clusters affected is the same than all writable clusters allowing the remediation to be sent to this Remediator

◆ ghostPageInIndex()

CirrusSearch\Sanity\AllClustersQueueingRemediator::ghostPageInIndex ( $docId,
Title $title )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ oldDocument()

CirrusSearch\Sanity\AllClustersQueueingRemediator::oldDocument ( WikiPage $page)

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ oldVersionInIndex()

CirrusSearch\Sanity\AllClustersQueueingRemediator::oldVersionInIndex ( $docId,
WikiPage $page,
$indexSuffix )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ pageInWrongIndex()

CirrusSearch\Sanity\AllClustersQueueingRemediator::pageInWrongIndex ( $docId,
WikiPage $page,
$indexSuffix )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ pageNotInIndex()

CirrusSearch\Sanity\AllClustersQueueingRemediator::pageNotInIndex ( WikiPage $page)

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ redirectInIndex()

CirrusSearch\Sanity\AllClustersQueueingRemediator::redirectInIndex ( string $docId,
WikiPage $page,
string $indexSuffix )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.


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