![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct () | |
processUploadId ($uploadId) | |
Run software heritage for a package. More... | |
processEachPfileForSWH ($pfileDetail, $agentId, $maxTime) | |
process each pfile for software heritage and wait till the reset time More... | |
![]() | |
__construct ($agentName, $version, $revision) | |
scheduler_connect () | |
Connect with scheduler and initialize options. More... | |
heartbeat ($newProcessed) | |
Send hear beat to the scheduler. More... | |
bail ($exitvalue) | |
Bail the agent, print the stack and disconnect from scheduler. More... | |
scheduler_disconnect ($exitvalue) | |
Closes connection from scheduler. More... | |
scheduler_greet () | |
Greet the scheduler at the beginning of connection. More... | |
initArsTable () | |
Initialize ARS table. | |
run_scheduler_event_loop () | |
Runs a loop to read commands from scheduler and process them. More... | |
Protected Member Functions | |
getSoftwareHeritageLicense ($sha256) | |
Get the license details from software heritage. More... | |
insertSoftwareHeritageRecord ($pfileId, $licenses, $agentId, $status) | |
Insert the License Details in softwareHeritage table. More... | |
![]() | |
processUploadId ($uploadId) | |
Given an upload ID, process the items in it. More... | |
Protected Attributes | |
$agentDao | |
![]() | |
$userId | |
$groupId | |
$jobId | |
$agentSpecifOptions = "" | |
$agentSpecifLongOptions = array() | |
$args = array() | |
$dbManager | |
$agentDao | |
$container | |
$schedulerMode | |
Private Attributes | |
$uploadDao | |
$licenseDao | |
$configuration | |
$dbManeger | |
$softwareHeritageDao | |
Additional Inherited Members | |
![]() | |
static | heartbeat_handler ($signo) |
Function to handle hear beats from the agent and send them to the scheduler from STDOUT. More... | |
Definition at line 42 of file softwareHeritageAgent.php.
Fossology\SoftwareHeritage\softwareHeritageAgent::__construct | ( | ) |
softwareHeritageAgent constructor.
Definition at line 82 of file softwareHeritageAgent.php.
|
protected |
Get the license details from software heritage.
String | $sha256 |
Definition at line 149 of file softwareHeritageAgent.php.
|
protected |
Insert the License Details in softwareHeritage table.
int | $pfileId | |
array | $licenses | |
int | $agentId |
Definition at line 206 of file softwareHeritageAgent.php.
Fossology\SoftwareHeritage\softwareHeritageAgent::processEachPfileForSWH | ( | $pfileDetail, | |
$agentId, | |||
$maxTime | |||
) |
process each pfile for software heritage and wait till the reset time
int | $pfileDetail | |
int | $maxTime |
Definition at line 123 of file softwareHeritageAgent.php.
Fossology\SoftwareHeritage\softwareHeritageAgent::processUploadId | ( | $uploadId | ) |
Run software heritage for a package.
int | $uploadId |
Definition at line 100 of file softwareHeritageAgent.php.
|
protected |
AgentDao object
Definition at line 70 of file softwareHeritageAgent.php.
|
private |
configuraiton for software heritage api
Definition at line 58 of file softwareHeritageAgent.php.
|
private |
DbManeger object
Definition at line 64 of file softwareHeritageAgent.php.
|
private |
LicenseDao object
Definition at line 52 of file softwareHeritageAgent.php.
|
private |
UploadDao object
Definition at line 47 of file softwareHeritageAgent.php.