OpenMediaVault
3.0 (Erasmus)
The open network attached storage solution
|
Public Member Functions | |
__construct ($status) | |
getPid () | |
isRunning () | |
hasError () | |
getError () | |
hasOutputFilename () | |
getOutputFilename () | |
get ($key) | |
set ($key, $value) | |
Helper class to handle the background process status.
OMV\Rpc\BgStatusFile::__construct | ( | $status | ) |
Constructor
status | An array of status informations. |
OMV\Rpc\BgStatusFile::get | ( | $key | ) |
Helper method to access the status fields.
key | The name of the status field. |
OMV\Rpc\BgStatusFile::getError | ( | ) |
Get the error object.
OMV\Rpc\BgStatusFile::getOutputFilename | ( | ) |
Get the name of the temporary file that contains the output of the background job.
OMV\Rpc\BgStatusFile::getPid | ( | ) |
Get the PID of the background process.
OMV\Rpc\BgStatusFile::hasError | ( | ) |
Check whether the background process is has thrown an error.
OMV\Rpc\BgStatusFile::hasOutputFilename | ( | ) |
Check whether the background process output is written to a temporary file.
OMV\Rpc\BgStatusFile::isRunning | ( | ) |
Check whether the background process is running.
OMV\Rpc\BgStatusFile::set | ( | $key, | |
$value | |||
) |
Helper method to set the status fields.
key | The name of the status field. |
value | The value of the status field. |