Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\MediaWiki\Jobs\UpdateDispatcherJob Class Reference
Inheritance diagram for SMW\MediaWiki\Jobs\UpdateDispatcherJob:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Jobs\UpdateDispatcherJob:
Collaboration graph
[legend]

Public Member Functions

 __construct (Title $title, $params=[], $id=0)
 
 run ()
 
- Public Member Functions inherited from SMW\MediaWiki\Job
 setStore (Store $store)
 
 isEnabledJobQueue ( $enableJobQueue=true)
 
 pushToJobQueue ()
 
 getType ()
 
 getJobCount ()
 
 hasParameter ( $key)
 
 getParameter ( $key, $default=false)
 
 setParameter ( $key, $value)
 
 insert ()
 
 lazyPush ()
 
 setDelay ( $delay)
 
 ignoreDuplicates ()
 
 waitOnCommandLineMode ()
 

Public Attributes

const RESTRICTED_DISPATCH_POOL = 'restricted.disp.pool'
 
const JOB_LIST = 'job-list'
 
const CHUNK_SIZE = 500
 

Additional Inherited Members

- Static Public Member Functions inherited from SMW\MediaWiki\Job
static batchInsert ( $jobs)
 
static newRootJobParams ( $key='', $title='')
 
- Protected Member Functions inherited from SMW\MediaWiki\Job
 getJobQueue ()
 
- Protected Attributes inherited from SMW\MediaWiki\Job
 $isEnabledJobQueue = true
 
 $jobQueue
 
 $jobs = []
 
 $store = null
 

Detailed Description

Dispatcher to find and create individual UpdateJob instances for a specific subject and its linked entities.

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Jobs\UpdateDispatcherJob::__construct ( Title  $title,
  $params = [],
  $id = 0 
)
Since
1.9
Parameters
Title$title
array$paramsjob parameters
integer$idjob id

Member Function Documentation

◆ run()

SMW\MediaWiki\Jobs\UpdateDispatcherJob::run ( )
See also
Job::run
Since
1.9
Returns
boolean

Retrieved a job list (most likely from a secondary dispatch run) and push each list entry into the job queue to spread the work independently from the actual dispatch process.

Using an entity ID to initiate some work (which if send from the DELETE will have no valid ID_TABLE reference by the time this job is run) on some secondary tables.

Create a secondary run by pushing collected jobs into a chunked queue

Member Data Documentation

◆ CHUNK_SIZE

const SMW\MediaWiki\Jobs\UpdateDispatcherJob::CHUNK_SIZE = 500

Size of chunks used when invoking the secondary dispatch run

◆ JOB_LIST

const SMW\MediaWiki\Jobs\UpdateDispatcherJob::JOB_LIST = 'job-list'

Parameter for the secondary run to contain a list of update jobs to be inserted at once.

◆ RESTRICTED_DISPATCH_POOL

const SMW\MediaWiki\Jobs\UpdateDispatcherJob::RESTRICTED_DISPATCH_POOL = 'restricted.disp.pool'

Restrict dispatch process to an available pool of data


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

About | General disclaimer | Privacy policy