42 private $readOnlyMode;
45 private $statsFactory;
51 private $globalIdGenerator;
68 $this->instances = [];
69 $this->options = $options;
70 $this->readOnlyMode = $readOnlyMode;
71 $this->statsFactory = $statsFactory;
72 $this->wanCache = $wanCache;
73 $this->globalIdGenerator = $globalIdGenerator;
83 if ( $domain === false ) {
84 $domain = WikiMap::getCurrentWikiDbDomain()->getId();
89 $isCurrentWiki = WikiMap::isCurrentWikiDbDomain( $domain );
90 if ( !$isCurrentWiki ) {
91 $wikiId = WikiMap::getWikiIdFromDbDomain( $domain );
94 throw new LogicException(
"Domain '{$domain}' is not recognized." );
98 if ( !isset( $this->instances[$domain] ) ) {
99 $localJobClasses = $isCurrentWiki
103 $this->instances[$domain] =
new JobQueueGroup(
111 $this->globalIdGenerator
115 return $this->instances[$domain];
if(!defined('MW_SETUP_CALLBACK'))
A class containing constants representing the names of configuration variables.
const JobTypeConf
Name constant for the JobTypeConf setting, for use with Config::get()
const LocalDatabases
Name constant for the LocalDatabases setting, for use with Config::get()
const JobClasses
Name constant for the JobClasses setting, for use with Config::get()
const JobTypesExcludedFromDefaultQueue
Name constant for the JobTypesExcludedFromDefaultQueue setting, for use with Config::get()