![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Core functions for communicating with the scheduler (v2) More...
Go to the source code of this file.
Functions | |
| fo_scheduler_connect ($IPaddr='', $Port='', &$ErrorMsg="") | |
| Connect to the scheduler. More... | |
| fo_scheduler_read ($SchedObj, $MaxSize=2048) | |
| Read the scheduler socket. More... | |
| fo_scheduler_write ($SchedObj, $msg) | |
| Write to the scheduler socket. More... | |
| fo_scheduler_close ($SchedObj) | |
| Close the scheduler connection (socket). More... | |
| fo_communicate_with_scheduler ($input, &$output, &$error_msg) | |
| Communicate with scheduler, send commands to the scheduler, then get the output. More... | |
| GetRunnableJobList () | |
| Get runnable job list, the process is below: More... | |
Core functions for communicating with the scheduler (v2)
Definition in file common-scheduler.php.
| fo_communicate_with_scheduler | ( | $input, | |
| & | $output, | ||
| & | $error_msg | ||
| ) |
Communicate with scheduler, send commands to the scheduler, then get the output.
| string | $input | The command that you want to send to the scheduler. Now the commands include:
| |
| [out] | string | &$output | Save the output from the scheduler, when received, that means this communication with the scheduler is over |
| [out] | string | &$error_msg | Save the error message |
Definition at line 131 of file common-scheduler.php.
| fo_scheduler_close | ( | $SchedObj | ) |
Close the scheduler connection (socket).
| resource | $SchedObj | Scheduler object (currently the socket) |
Definition at line 101 of file common-scheduler.php.
| fo_scheduler_connect | ( | $IPaddr = '', |
|
$Port = '', |
|||
| & | $ErrorMsg = "" |
||
| ) |
Connect to the scheduler.
The scheduler IP address and port are read from fossology.conf. But they may be overridden with the optional parameters.
| string | $IPaddr | Optional IP address, default is 127.0.0.1 | |
| int | $Port | Optional port, default is 5555 | |
| [out] | string | &$ErrorMsg | The error message is stored |
Definition at line 42 of file common-scheduler.php.
| fo_scheduler_read | ( | $SchedObj, | |
$MaxSize = 2048 |
|||
| ) |
Read the scheduler socket.
| resource | $SchedObj | Scheduler object (currently the socket) |
| int | $MaxSize | Optional max read size, default is 2048 |
Definition at line 73 of file common-scheduler.php.
| fo_scheduler_write | ( | $SchedObj, | |
| $msg | |||
| ) |
Write to the scheduler socket.
| resource | $SchedObj | Scheduler object (currently the socket) |
| string | $msg | Message to write to scheduler |
Definition at line 89 of file common-scheduler.php.
| GetRunnableJobList | ( | ) |
Get runnable job list, the process is below:
Definition at line 182 of file common-scheduler.php.