class documentation
class TimeManager(object):
Managing time related CSE functions.
| Method | add |
Add a Loss-of-sync timeSyncBeacon resource. |
| Method | add |
Add a worker for a periodic timeSyncBeacon resource. |
| Method | add |
Add a timeSyncBeacon resource. |
| Method | is |
Check if a request is a loss-of-synchronization request. |
| Method | remove |
Remove a Loss-of-sync timeSyncBeacon resource. |
| Method | remove |
Remove a periodic timeSyncBeacon resource. A running worker is stopped. |
| Method | remove |
Remove a timeSyncBeacon resource. |
| Method | request |
Handle a received request. |
| Method | response |
Handle a received response. |
| Method | restart |
Restart the time manager services. |
| Method | start |
Initialize the TimeManager. |
| Method | stop |
Shutdown the TimeManager. |
| Method | update |
Update a timeSyncBeacon resource. |
| Class Variable | __slots__ |
Define slots for instance variables. |
| Class Variable | notification |
Injected NotificationManager instance. |
| Class Variable | storage |
Injected Storage instance. |
| Class Variable | time |
Reference to the TimeManager plugin instance. |
| Instance Variable | cse |
List of active schedules when the CSE is active and will process requests. |
| Instance Variable | los |
Table for Loss-of-sync timeSyncBeacons. |
| Instance Variable | periodic |
Table for periodic timeSyncBeacons. |
| Method | _get |
Get all periodic timeSyncBeacons from the storage. |
| Method | _stop |
Stop all the running periodic timers. |
Check if a request is a loss-of-synchronization request.
| Parameters | |
req:CSERequest | The request. |
| Returns | |
str | None | The duration of the loss-of-synchronization or None. |
Remove a periodic timeSyncBeacon resource. A running worker is stopped.
| Parameters | |
tsb:TSB | The timeSyncBeacon resource. |
Update a timeSyncBeacon resource.
| Parameters | |
tsb:TSB | The timeSyncBeacon resource |
originalBeaconCriteria | The original beacon criteria |