UpdateProcessorInterface
interface UpdateProcessorInterface (View source)
Processor of project update information.
Methods
Claims an item in the update fetch queue for processing.
Attempts to drain the queue of tasks for release history data to fetch.
Adds a task to the queue for fetching release history data for a project.
Processes a task to fetch available update data for a single project.
Retrieves the number of items in the update fetch queue.
Deletes a finished item from the update fetch queue.
Details
bool|object
claimQueueItem()
Claims an item in the update fetch queue for processing.
fetchData()
Attempts to drain the queue of tasks for release history data to fetch.
createFetchTask(array $project)
Adds a task to the queue for fetching release history data for a project.
We only create a new fetch task if there's no task already in the queue for this particular project (based on 'update_fetch_task' key-value collection).
bool
processFetchTask(array $project)
Processes a task to fetch available update data for a single project.
Once the release history XML data is downloaded, it is parsed and saved in an entry just for that project.
int
numberOfQueueItems()
Retrieves the number of items in the update fetch queue.
deleteQueueItem(object $item)
Deletes a finished item from the update fetch queue.