mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
parent
04ef3f1244
commit
1d6d4f0b10
@ -22,6 +22,13 @@ class RemoteCommandFile implements CommandTransportInterface
|
|||||||
*/
|
*/
|
||||||
const TRANSPORT = 'remote';
|
const TRANSPORT = 'remote';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of the Icinga instance this transport will transfer commands to
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $instanceName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remote host
|
* Remote host
|
||||||
*
|
*
|
||||||
@ -74,6 +81,29 @@ class RemoteCommandFile implements CommandTransportInterface
|
|||||||
$this->renderer = new IcingaCommandFileCommandRenderer();
|
$this->renderer = new IcingaCommandFileCommandRenderer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the name of the Icinga instance this transport will transfer commands to
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setInstance($name)
|
||||||
|
{
|
||||||
|
$this->instanceName = $name;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the name of the Icinga instance this transport will transfer commands to
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getInstance()
|
||||||
|
{
|
||||||
|
return $this->instanceName;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the remote host
|
* Set the remote host
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user