Maintenance script that polls for Wikibase changes in the shared wb_changes table and dispatches the relevant changes to any client wikis' job queues.
More...
|
| __construct () |
|
| execute () |
| Maintenance script entry point.
|
|
| trace ( $message) |
| Log a message if verbose mode is enabled.
|
|
| log ( $message) |
| Log a message unless we are quiet.
|
|
Maintenance script that polls for Wikibase changes in the shared wb_changes table and dispatches the relevant changes to any client wikis' job queues.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Maintenance\DispatchChanges::__construct |
( |
| ) |
|
◆ execute()
Wikibase\Repo\Maintenance\DispatchChanges::execute |
( |
| ) |
|
Maintenance script entry point.
This will run $this->runPass() in a loop, the number of times specified by $this->maxPasses. If $this->maxTime is exceeded before all passes are run, execution is also terminated. If no suitable target wiki can be found for a pass, we sleep for $this->delay seconds instead of dispatching.
◆ filterClientWikis()
Wikibase\Repo\Maintenance\DispatchChanges::filterClientWikis |
( |
array |
$allClientWikis, |
|
|
array |
$selectedSiteIDs = null |
|
) |
| |
|
private |
- Parameters
-
string[] | $allClientWikis | as returned by getClientWikis(). |
string[] | null | $selectedSiteIDs | site IDs to select, or null to disable filtering. |
- Exceptions
-
- Returns
- string[] A mapping of client wiki site IDs to logical database names.
◆ getClientWikis()
Wikibase\Repo\Maintenance\DispatchChanges::getClientWikis |
( |
array |
$clientWikis | ) |
|
|
private |
- Parameters
-
string[] | $clientWikis | as defined in the localClientDatabases config setting. |
- Returns
- string[] A mapping of client wiki site IDs to logical database names.
◆ getCoordinator()
Wikibase\Repo\Maintenance\DispatchChanges::getCoordinator |
( |
SettingsArray |
$settings, |
|
|
LoggerInterface |
$logger |
|
) |
| |
|
private |
Find and return the proper ChangeDispatchCoordinator.
- Parameters
-
SettingsArray | $settings | |
LoggerInterface | $logger | |
- Returns
- SqlChangeDispatchCoordinator
◆ log()
Wikibase\Repo\Maintenance\DispatchChanges::log |
( |
|
$message | ) |
|
Log a message unless we are quiet.
- Parameters
-
◆ newChangeDispatcher()
Wikibase\Repo\Maintenance\DispatchChanges::newChangeDispatcher |
( |
array |
$clientWikis, |
|
|
EntityChangeLookup |
$changeLookup, |
|
|
SettingsArray |
$settings, |
|
|
LoggerInterface |
$logger |
|
) |
| |
|
private |
Initializes members from command line options and configuration settings.
- Parameters
-
string[] | $clientWikis | A mapping of client wiki site IDs to logical database names. |
EntityChangeLookup | $changeLookup | |
SettingsArray | $settings | |
LoggerInterface | $logger | |
- Returns
- ChangeDispatcher
◆ trace()
Wikibase\Repo\Maintenance\DispatchChanges::trace |
( |
|
$message | ) |
|
Log a message if verbose mode is enabled.
- Parameters
-
◆ $verbose
Wikibase\Repo\Maintenance\DispatchChanges::$verbose |
|
private |
The documentation for this class was generated from the following file: