[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Helper class for representing batch file operations. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Author: | Aaron Schulz |
File Size: | 201 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
FileOpBatch:: (2 methods):
attempt()
runParallelBatches()
Class: FileOpBatch - X-Ref
Helper class for representing batch file operations.attempt( array $performOps, array $opts, FileJournal $journal ) X-Ref |
Attempt to perform a series of file operations. Callers are responsible for handling file locking. $opts is an array of options, including: - force : Errors that would normally cause a rollback do not. The remaining operations are still attempted if any fail. - nonJournaled : Don't log this operation batch in the file journal. - concurrency : Try to do this many operations in parallel when possible. The resulting Status will be "OK" unless: - a) unexpected operation errors occurred (network partitions, disk full...) - b) significant operation errors occurred and 'force' was not set param: array $performOps List of FileOp operations param: array $opts Batch operation options param: FileJournal $journal Journal to log operations to return: Status |
runParallelBatches( array $pPerformOps, Status $status ) X-Ref |
Attempt a list of file operations sub-batches in series. The operations *in* each sub-batch will be done in parallel. The caller is responsible for making sure the operations within any given sub-batch do not depend on each other. This will abort remaining ops on failure. param: array $pPerformOps Batches of file ops (batches use original indexes) param: Status $status |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |