mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
ff54284401
commit
04ef3f1244
@ -22,6 +22,13 @@ class LocalCommandFile implements CommandTransportInterface
|
||||
*/
|
||||
const TRANSPORT = 'local';
|
||||
|
||||
/**
|
||||
* The name of the Icinga instance this transport will transfer commands to
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $instanceName;
|
||||
|
||||
/**
|
||||
* Path to the icinga command file
|
||||
*
|
||||
@ -51,6 +58,29 @@ class LocalCommandFile implements CommandTransportInterface
|
||||
$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 path to the local Icinga command file
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user