mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
BackgroundDaemonState: reduce API
This commit is contained in:
parent
80f9ea29b5
commit
fd80344d79
@ -17,11 +17,6 @@ class BackgroundDaemonState
|
||||
$this->db = $db;
|
||||
}
|
||||
|
||||
public function hasProblems()
|
||||
{
|
||||
return $this->isRunning();
|
||||
}
|
||||
|
||||
public function isRunning()
|
||||
{
|
||||
foreach ($this->getInstances() as $instance) {
|
||||
@ -33,7 +28,7 @@ class BackgroundDaemonState
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getInstances()
|
||||
protected function getInstances()
|
||||
{
|
||||
if ($this->instances === null) {
|
||||
$this->instances = $this->fetchInfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user