13 public function __construct()
15 $this->Name =
"agent_monk";
16 $this->Title = _(
"Monk License Analysis, scanning for licenses performing a text comparison");
17 $this->AgentName =
"monk";
19 parent::__construct();
24 return CheckARS($uploadId, $this->AgentName,
"monk agent",
"monk_ars");
31 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=
null)
33 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
39 if ($jobQueueId != 0) {
44 if (!empty($unpackArgs)) {
45 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
47 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
59 foreach ($dependencies as $dependency) {
60 if ($dependency == $agentName) {
63 if (is_array($dependency) && $agentName == $dependency[
'name']) {
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)
isAgentIncluded($dependencies, $agentName)
AgentHasResults($uploadId=0)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.