Commit 4c03b2b5 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

locking.GLM: Allow adding locks to monitor



This will be used for exporting job dependencies through
the lock monitor.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 44b4eddc
......@@ -1449,6 +1449,14 @@ class GanetiLockManager:
monitor=self._monitor),
}
def AddToLockMonitor(self, provider):
"""Registers a new lock with the monitor.
See L{LockMonitor.RegisterLock}.
"""
return self._monitor.RegisterLock(provider)
def QueryLocks(self, fields):
"""Queries information from all locks.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment