2013-07-31 14:17:40 +02:00
|
|
|
<?php
|
2013-08-06 09:23:00 +02:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
2013-07-31 14:17:40 +02:00
|
|
|
|
|
|
|
namespace Icinga\Protocol\Commandpipe\Transport;
|
|
|
|
|
2013-08-21 11:02:53 +02:00
|
|
|
use \Zend_Config;
|
|
|
|
|
2013-08-01 17:48:36 +02:00
|
|
|
/**
|
|
|
|
* Interface for Transport classes handling the concrete access to the command pipe
|
|
|
|
*/
|
2013-07-31 14:17:40 +02:00
|
|
|
interface Transport
|
|
|
|
{
|
2013-08-01 17:48:36 +02:00
|
|
|
/**
|
|
|
|
* Overwrite the target file of this Transport class using the given config from instances.ini
|
|
|
|
*
|
2013-08-21 11:02:53 +02:00
|
|
|
* @param Zend_Config $config A configuration file containing a 'path' setting
|
2013-08-01 17:48:36 +02:00
|
|
|
*/
|
2013-08-21 11:02:53 +02:00
|
|
|
public function setEndpoint(Zend_Config $config);
|
2013-08-01 17:48:36 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Write the given external command to the command pipe
|
|
|
|
*
|
2013-08-21 11:02:53 +02:00
|
|
|
* @param string $message The command to send, without the timestamp (this will be added here)
|
2013-08-01 17:48:36 +02:00
|
|
|
*/
|
2013-07-31 14:17:40 +02:00
|
|
|
public function send($message);
|
2013-08-06 09:23:00 +02:00
|
|
|
}
|