FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager, UploadDao $uploadDao) | |
uploads2Jobs ($upload_pks, $page=0) | |
Find all the jobs for a given set of uploads. More... | |
getJobName ($uploadId) | |
Return job name. Used for deleted jobs. More... | |
myJobs ($allusers, $page=0) | |
Find all of my jobs submitted within the last n hours. More... | |
getJobInfo ($job_pks) | |
Get job queue data from db. More... | |
getNumItemsPerSec ($itemsprocessed, $numSecs) | |
Returns Number of files/items processed per sec. More... | |
getEstimatedTime ($job_pk, $jq_Type='', $filesPerSec=0, $uploadId=0, $timeInSec=0) | |
Returns Estimated time using jobid. More... | |
getDataForASingleJob ($jq_pk) | |
Return total Job data with time elapsed. More... | |
getJobStatus ($jqPk) | |
getItemsProcessedForDecider ($jqType, $jobId) | |
getJobsForAll () | |
Private Attributes | |
$dbManager | |
$uploadDao | |
$logger | |
$maxJobsPerPage = 10 | |
$nhours = 672 | |
Definition at line 15 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::getDataForASingleJob | ( | $jq_pk | ) |
Return total Job data with time elapsed.
$jq_pk |
Definition at line 312 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::getEstimatedTime | ( | $job_pk, | |
$jq_Type = '' , |
|||
$filesPerSec = 0 , |
|||
$uploadId = 0 , |
|||
$timeInSec = 0 |
|||
) |
Returns Estimated time using jobid.
int | $job_pk | |
string | $jq_Type | |
float | $filesPerSec | |
int | $uploadId |
Definition at line 247 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::getItemsProcessedForDecider | ( | $jqType, | |
$jobId | |||
) |
Fossology\Lib\Dao\ShowJobsDao::getJobInfo | ( | $job_pks | ) |
Get job queue data from db.
array | $job_pks | Array of $job_pk's to display. |
Definition at line 157 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::getJobName | ( | $uploadId | ) |
Return job name. Used for deleted jobs.
upload_pk |
Definition at line 76 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::getJobsForAll | ( | ) |
Get the status of all recent pending or running jobs.
Definition at line 366 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::getJobStatus | ( | $jqPk | ) |
Fossology\Lib\Dao\ShowJobsDao::getNumItemsPerSec | ( | $itemsprocessed, | |
$numSecs | |||
) |
Returns Number of files/items processed per sec.
int | $itemsprocessed | |
int | $numSecs |
Definition at line 234 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::myJobs | ( | $allusers, | |
$page = 0 |
|||
) |
Find all of my jobs submitted within the last n hours.
int | $allusers | Get data of all users if set to 1. |
int | $page | Get data for this display page. Starts with zero. |
Definition at line 96 of file ShowJobsDao.php.
Fossology\Lib\Dao\ShowJobsDao::uploads2Jobs | ( | $upload_pks, | |
$page = 0 |
|||
) |
Find all the jobs for a given set of uploads.
array | $upload_pks | Array of upload_pk's |
int | $page | Get data for this display page. Starts with zero. |
Definition at line 43 of file ShowJobsDao.php.