mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
monitoring/commands: Add `CommandTransportInterface'
All concrete Icinga command transport classes should implement the `CommandTransportInterface' . refs #6593
This commit is contained in:
parent
4ca1eaa7ce
commit
0e2e1bc005
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
|
namespace Icinga\Module\Monitoring\Command\Transport;
|
||||||
|
|
||||||
|
use Icinga\Module\Monitoring\Command\IcingaCommand;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface for Icinga command transports
|
||||||
|
*/
|
||||||
|
interface CommandTransportInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Send the command
|
||||||
|
*
|
||||||
|
* @param IcingaCommand $command
|
||||||
|
*
|
||||||
|
* @throws \Icinga\Module\Monitoring\Command\Exception\TransportException
|
||||||
|
*/
|
||||||
|
public function send(IcingaCommand $command);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user