コード例 #1
0
ファイル: collectionService.py プロジェクト: weijia/ufs
 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
ファイル: folderCollection-old.py プロジェクト: weijia/ufs
 def __init__(self, collectionId):
     self.db = objectDatabase.objectDatabase()
     self.collection = self.db.getCollection(collectionId)
コード例 #3
0
ファイル: folderCollection-old.py プロジェクト: weijia/ufs
 def __init__(self, rootDir, backupDir, collectionId):
     self.rootDir = rootDir
     self.backupDir = backupDir
     self.lastState = folderStorageStateOnDb(collectionId)
     self.db = objectDatabase.objectDatabase()