FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Import decisions generated by Decision Exporter from JSON files. More...
Public Member Functions | |
__construct () | |
processUploadId ($uploadId) | |
Given an upload ID, process the items in it. More... | |
Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
__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... | |
Public Attributes | |
const | REPORT_KEY = "report" |
Key used to pass report name. | |
const | LONG_OPT_KEYS = ["userselect"] |
Other CLI args required by agents. | |
Static Public Attributes | |
static | $UPDATE_COUNT = 1000 |
Private Member Functions | |
processArgs () | |
Private Attributes | |
$report | |
$setUserId | |
$reportData | |
$decisionImporterUtils | |
$decisionImporterDataCreator | |
Additional Inherited Members | |
Static Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
static | heartbeat_handler ($signo) |
Function to handle hear beats from the agent and send them to the scheduler from STDOUT. More... | |
Protected Attributes inherited from Fossology\Lib\Agent\Agent | |
$userId | |
$groupId | |
$jobId | |
$agentSpecifOptions = "" | |
$agentSpecifLongOptions = array() | |
$args = array() | |
$dbManager | |
$agentDao | |
$container | |
$schedulerMode | |
Import decisions generated by Decision Exporter from JSON files.
Definition at line 35 of file DecisionImporterAgent.php.
Fossology\DecisionImporter\DecisionImporterAgent::__construct | ( | ) |
Exception |
Definition at line 79 of file DecisionImporterAgent.php.
|
private |
Process args and extract additional values.
Definition at line 150 of file DecisionImporterAgent.php.
Fossology\DecisionImporter\DecisionImporterAgent::processUploadId | ( | $uploadId | ) |
Given an upload ID, process the items in it.
This function is implemented by agent and should call heartbeat() at regular intervals.
int | $uploadId | Upload to be processed by the agent. |
Exception | Throws Exception if anything goes wrong. |
Reimplemented from Fossology\Lib\Agent\Agent.
Definition at line 106 of file DecisionImporterAgent.php.
|
private |
Creator object
Definition at line 74 of file DecisionImporterAgent.php.
|
private |
Fetcher object
Definition at line 68 of file DecisionImporterAgent.php.
|
private |
Location of JSON report.
Definition at line 50 of file DecisionImporterAgent.php.
|
private |
Object holding report data
Definition at line 62 of file DecisionImporterAgent.php.
|
private |
User ID to use while creating decisions.
Definition at line 56 of file DecisionImporterAgent.php.
|
static |
How many rows to update at once to DB
Definition at line 41 of file DecisionImporterAgent.php.