Lines Matching refs:HostState
65 if (stateActive(getTarget(server::Host::HostState::Running)) || in determineInitialState()
69 server::Host::currentHostState(HostState::Running, true); in determineInitialState()
75 server::Host::currentHostState(HostState::Off, true); in determineInitialState()
104 {HostState::Off, std::format("obmc-host-stop@{}.target", id)}, in createSystemdTargetMaps()
105 {HostState::Running, std::format("obmc-host-startmin@{}.target", id)}, in createSystemdTargetMaps()
106 {HostState::Quiesced, std::format("obmc-host-quiesce@{}.target", id)}, in createSystemdTargetMaps()
107 {HostState::DiagnosticMode, in createSystemdTargetMaps()
130 const std::string& Host::getTarget(HostState state) in getTarget()
292 if ((newStateUnit == getTarget(server::Host::HostState::Off)) && in sysStateChangeJobRemoved()
294 (!stateActive(getTarget(server::Host::HostState::Running)))) in sysStateChangeJobRemoved()
297 this->currentHostState(server::Host::HostState::Off); in sysStateChangeJobRemoved()
301 else if ((newStateUnit == getTarget(server::Host::HostState::Running)) && in sysStateChangeJobRemoved()
303 (stateActive(getTarget(server::Host::HostState::Running)))) in sysStateChangeJobRemoved()
306 this->currentHostState(server::Host::HostState::Running); in sysStateChangeJobRemoved()
319 else if ((newStateUnit == getTarget(server::Host::HostState::Quiesced)) && in sysStateChangeJobRemoved()
321 (stateActive(getTarget(server::Host::HostState::Quiesced)))) in sysStateChangeJobRemoved()
331 this->currentHostState(server::Host::HostState::Quiesced); in sysStateChangeJobRemoved()
345 if (newStateUnit == getTarget(server::Host::HostState::DiagnosticMode)) in sysStateChangeJobNew()
348 this->currentHostState(server::Host::HostState::DiagnosticMode); in sysStateChangeJobNew()
352 server::Host::HostState::Running)) in sysStateChangeJobNew()
452 Host::HostState Host::currentHostState(HostState value) in currentHostState()