MediaWiki  REL1_19
DumpPipeOutput Class Reference

Stream outputter to send data to a file via some filter program. More...

Inheritance diagram for DumpPipeOutput:
Collaboration diagram for DumpPipeOutput:

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

DumpPipeOutput::__construct ( command,
file = null 
)

Definition at line 844 of file Export.php.

References $command, $file, startCommand(), and wfEscapeShellArg().

Referenced by DumpDBZip2Output\DumpDBZip2Output().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

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).

Parameters:
$newnamemixed File name. May be a string or an array with one element
$openbool 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().

Here is the call graph for this function:

Here is the caller graph for this function:

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).

Parameters:
$newnamemixed 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().

Here is the call graph for this function:

Definition at line 854 of file Export.php.

References $command.

Referenced by __construct(), closeAndRename(), and Dump7ZipOutput\closeAndRename().

Here is the caller graph for this function:


Member Data Documentation

DumpPipeOutput::$command [protected]
DumpPipeOutput::$filename

Reimplemented from DumpFileOutput.

Definition at line 842 of file Export.php.


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