Example #1
0
 def doReport(self, arg):
     if self.ask4abort:
         if self.finishCallback:
             self.finishCallback(self.backupID, 'abort')
         events.info('backup', '%s aborted' % self.backupID)
     else:
         if self.finishCallback:
             self.finishCallback(self.backupID, 'done')
         events.info('backup', '%s done successfully' % self.backupID)
Example #2
0
 def _raidmakeCallback(self, params, result, dt):
     filename, eccmapname, backupID, blockNumber, targetDir = params
     if result is None:
         if _Debug:
             lg.out(_DebugLevel, 'backup._raidmakeCallback WARNING - result is None :  %r eof=%s dt=%s' % (
                 blockNumber, str(self.stateEOF), str(time.time() - dt)))
         events.info('backup', '%s aborted' % self.backupID)
         self._kill_pipe()
     else:
         if _Debug:
             lg.out(_DebugLevel, 'backup._raidmakeCallback %r %r eof=%s dt=%s' % (
                 blockNumber, result, str(self.stateEOF), str(time.time() - dt)))
         self.automat('block-raid-done', (blockNumber, result))
Example #3
0
 def doInit(self, arg):
     """
     Action method.
     """
     events.info('backup', '%s started' % self.backupID)