| 128 | } |
| 129 | |
| 130 | void Notification::Start(bool runtimeCreated) |
| 131 | { |
| 132 | Checkable::Ptr obj = GetCheckable(); |
| 133 | |
| 134 | if (obj) |
| 135 | obj->RegisterNotification(this); |
| 136 | |
| 137 | if (ApiListener::IsHACluster() && GetNextNotification() < Utility::GetTime() + 60) |
| 138 | SetNextNotification(Utility::GetTime() + 60, true); |
| 139 | |
| 140 | for (const UserGroup::Ptr& group : GetUserGroups()) |
| 141 | group->AddNotification(this); |
| 142 | |
| 143 | ObjectImpl<Notification>::Start(runtimeCreated); |
| 144 | } |
| 145 | |
| 146 | void Notification::Stop(bool runtimeRemoved) |
| 147 | { |
nothing calls this directly
no test coverage detected