MediaWiki
REL1_19
|
Stream outputter to send data to a file via some filter program. More...
Public Member Functions | |
__construct ($command, $file=null) | |
closeAndRename ($newname, $open=false) | |
Close the old file, and move it to a specified name. | |
closeRenameAndReopen ($newname) | |
Close the old file, move it to a specified name, and reopen new file with the old name. | |
startCommand ($command) | |
Public Attributes | |
$filename | |
Protected Attributes | |
$command |
Stream outputter to send data to a file via some filter program.
Even if compression is available in a library, using a separate program can allow us to make use of a multi-processor system.
Definition at line 841 of file Export.php.
DumpPipeOutput::__construct | ( | $ | command, |
$ | file = null |
||
) |
Definition at line 844 of file Export.php.
References $command, $file, startCommand(), and wfEscapeShellArg().
Referenced by DumpDBZip2Output\DumpDBZip2Output().
DumpPipeOutput::closeAndRename | ( | $ | newname, |
$ | open = false |
||
) |
Close the old file, and move it to a specified name.
Use this for the last piece of a file written out at specified checkpoints (e.g. every n hours).
$newname | mixed File name. May be a string or an array with one element |
$open | bool If true, a new file with the old filename will be opened again for writing (default: false) |
Reimplemented from DumpFileOutput.
Reimplemented in Dump7ZipOutput.
Definition at line 867 of file Export.php.
References $command, DumpFileOutput\checkRenameArgCount(), DumpFileOutput\renameOrException(), startCommand(), and wfEscapeShellArg().
Referenced by closeRenameAndReopen().
DumpPipeOutput::closeRenameAndReopen | ( | $ | newname | ) |
Close the old file, move it to a specified name, and reopen new file with the old name.
Use this for writing out a file in multiple pieces at specified checkpoints (e.g. every n hours).
$newname | mixed File name. May be a string or an array with one element |
Reimplemented from DumpFileOutput.
Definition at line 863 of file Export.php.
References closeAndRename().
DumpPipeOutput::startCommand | ( | $ | command | ) |
Definition at line 854 of file Export.php.
References $command.
Referenced by __construct(), closeAndRename(), and Dump7ZipOutput\closeAndRename().
DumpPipeOutput::$command [protected] |
Definition at line 842 of file Export.php.
Referenced by __construct(), Dump7ZipOutput\__construct(), closeAndRename(), Dump7ZipOutput\closeAndRename(), Dump7ZipOutput\setup7zCommand(), and startCommand().
DumpPipeOutput::$filename |
Reimplemented from DumpFileOutput.
Definition at line 842 of file Export.php.