monitoring/commands: Add `CommandTransportInterface'

All concrete Icinga command transport classes should implement the `CommandTransportInterface' .

refs #6593
This commit is contained in:
Eric Lippmann 2014-08-29 14:34:16 +02:00
parent 4ca1eaa7ce
commit 0e2e1bc005
1 changed files with 22 additions and 0 deletions

View File

@ -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);
}