2021-02-04 09:02:19 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
|
|
|
|
|
|
|
|
|
|
namespace Icinga\Module\Icingadb\Command\Transport;
|
|
|
|
|
|
|
|
|
|
use Icinga\Module\Icingadb\Command\IcingaCommand;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface for Icinga command transports
|
|
|
|
|
*/
|
|
|
|
|
interface CommandTransportInterface
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Send an Icinga command over the Icinga command transport
|
|
|
|
|
*
|
|
|
|
|
* @param IcingaCommand $command The command to send
|
|
|
|
|
* @param int|null $now Timestamp of the command or null for now
|
|
|
|
|
*
|
|
|
|
|
* @throws CommandTransportException If sending the Icinga command failed
|
|
|
|
|
*/
|
2021-09-22 04:21:15 -04:00
|
|
|
public function send(IcingaCommand $command, int $now = null);
|
2021-02-04 09:02:19 -05:00
|
|
|
}
|