Beispiel #1
0
 def __init__(self, snapshotdir, timegap, keptfile = 30):
     self._transactionsdir = snapshotdir
     self._transactions = [[]]
     self._level = 0
     self._commit = 0
     Data.__init__(self, snapshotdir, keptfile, timegap)
     self._transactionsfile = os.path.join(self._transactionsdir, "transaction{0}".format(self._commit))
     open(self._transactionsfile, 'a').close()
Beispiel #2
0
 def __init__(self, snapshotdir, timegap, keptfile=30):
     self._transactionsdir = snapshotdir
     self._transactions = [[]]
     self._level = 0
     self._commit = 0
     Data.__init__(self, snapshotdir, keptfile, timegap)
     self._transactionsfile = os.path.join(
         self._transactionsdir, "transaction{0}".format(self._commit))
     open(self._transactionsfile, 'a').close()
Beispiel #3
0
 def __init__(self, snapshotdir, timegap, keptfile = 30):
     Data.__init__(self, snapshotdir, timegap, keptfile)
     thread = Thread(target = self._takesnapshot)
     thread.daemon = True
     thread.start()