Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.plugins.fsck_plugin.CheckGeneration Class Reference
Inheritance diagram for obnamlib.plugins.fsck_plugin.CheckGeneration:
Inheritance graph
[legend]
Collaboration diagram for obnamlib.plugins.fsck_plugin.CheckGeneration:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def do

Public Attributes

 client_name
 genid
 name

Detailed Description

Definition at line 126 of file fsck_plugin.py.


Constructor & Destructor Documentation

def obnamlib.plugins.fsck_plugin.CheckGeneration.__init__ (   self,
  client_name,
  genid 
)

Definition at line 128 of file fsck_plugin.py.

00128 
00129     def __init__(self, client_name, genid):
00130         self.client_name = client_name
00131         self.genid = genid
00132         self.name = '%s:%s' % (client_name, genid)
        

Member Function Documentation

Definition at line 133 of file fsck_plugin.py.

00133 
00134     def do(self):
00135         logging.debug('Checking client=%s genid=%s' % 
00136                         (self.client_name, self.genid))
00137 
00138         started, ended = self.repo.client.get_generation_times(self.genid)
00139         if started is None:
00140             self.error('%s:%s: no generation start time' %
00141                         (self.client_name, self.genid))
00142         if ended is None:
00143             self.error('%s:%s: no generation end time' %
00144                         (self.client_name, self.genid))
00145 
00146         n = self.repo.client.get_generation_file_count(self.genid)
00147         if n is None:
00148             self.error('%s:%s: no file count' % (self.client_name, self.genid))
00149 
00150         n = self.repo.client.get_generation_data(self.genid)
00151         if n is None:
00152             self.error('%s:%s: no total data' % (self.client_name, self.genid))
00153 
00154         return [CheckDirectory(self.client_name, self.genid, '/')]
00155 

Here is the call graph for this function:


Member Data Documentation

Definition at line 129 of file fsck_plugin.py.

Definition at line 130 of file fsck_plugin.py.

Definition at line 131 of file fsck_plugin.py.


The documentation for this class was generated from the following file: