Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob Class Reference

Base class for repo jobs that dispatch client change modification notification jobs to all client wikis. More...

+ Inheritance diagram for Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob:
+ Collaboration diagram for Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob:

Public Member Functions

 __construct (string $jobName, Title $title, array $params)
 
 initServices (EntityIdLookup $entityIdLookup, LoggerInterface $logger, JobQueueGroupFactory $jobQueueGroupFactory)
 
 run ()
 

Protected Member Functions

 initFromGlobalState (MediaWikiServices $mwServices)
 
 revisionIdentifiersToJson (array $revisionIdentifiers)
 
 getChangeModificationNotificationJobs (EntityId $entityId)
 

Protected Attributes

 $clientRCMaxAge
 
 $logger
 

Private Member Functions

 dispatchChangeModificationNotificationJobs (array $jobSpecifications)
 

Private Attributes

 $localClientDatabases
 
 $entityIdLookup
 
 $jobQueueGroupFactory
 

Detailed Description

Base class for repo jobs that dispatch client change modification notification jobs to all client wikis.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::__construct ( string  $jobName,
Title  $title,
array  $params 
)

Member Function Documentation

◆ dispatchChangeModificationNotificationJobs()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::dispatchChangeModificationNotificationJobs ( array  $jobSpecifications)
private
Parameters
IJobSpecification[]$jobSpecifications

◆ getChangeModificationNotificationJobs()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::getChangeModificationNotificationJobs ( EntityId  $entityId)
abstractprotected
Parameters
EntityId$entityId
Returns
IJobSpecification[]

Reimplemented in Wikibase\Repo\ChangeModification\DispatchChangeDeletionNotificationJob.

◆ initFromGlobalState()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::initFromGlobalState ( MediaWikiServices  $mwServices)
protected

◆ initServices()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::initServices ( EntityIdLookup  $entityIdLookup,
LoggerInterface  $logger,
JobQueueGroupFactory  $jobQueueGroupFactory 
)
Parameters
EntityIdLookup$entityIdLookup
LoggerInterface$logger
JobQueueGroupFactory$jobQueueGroupFactory

◆ revisionIdentifiersToJson()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::revisionIdentifiersToJson ( array  $revisionIdentifiers)
protected
Parameters
RepoRevisionIdentifier[]$revisionIdentifiers
Returns
string JSON

◆ run()

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::run ( )

Member Data Documentation

◆ $clientRCMaxAge

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::$clientRCMaxAge
protected

◆ $entityIdLookup

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::$entityIdLookup
private

◆ $jobQueueGroupFactory

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::$jobQueueGroupFactory
private

◆ $localClientDatabases

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::$localClientDatabases
private

◆ $logger

Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob::$logger
protected

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