예제 #1
0
 def __init__(self, sessionBus, objectPath, cfg):
     dbus.service.Object.__init__(self, sessionBus, objectPath)
     self.freqUpdatedList = {}
     self.objDb = objectDatabase.objectDatabase()
     self.taskMan = taskManagerProxy()
     self.registeredCallback = {}
     self.monitoring = {}
     self.cfg = cfg
예제 #2
0
 def __init__(self, collectionId):
     self.db = objectDatabase.objectDatabase()
     self.collection = self.db.getCollection(collectionId)
예제 #3
0
 def __init__(self, rootDir, backupDir, collectionId):
     self.rootDir = rootDir
     self.backupDir = backupDir
     self.lastState = folderStorageStateOnDb(collectionId)
     self.db = objectDatabase.objectDatabase()