2013-07-31 14:17:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Protocol\Commandpipe\Transport;
|
|
|
|
|
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
|
|
|
|
*
|
|
|
|
* @param \Zend_Config $config A configuration file containing a 'path' setting
|
|
|
|
*/
|
2013-07-31 14:17:40 +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
|
|
|
|
*
|
|
|
|
* @param string $message The command to send, without the timestamp (this will be added here)
|
|
|
|
*/
|
2013-07-31 14:17:40 +02:00
|
|
|
public function send($message);
|
|
|
|
}
|