Пример #1
0
 def filter_multi():
     """Filter and return files that were written more than once."""
     counts = defaultdict(int)
     files = stats.kvs_op("lrange", key, 0, -1)
     for file in files:
         counts[file] += 1
     return [(f, c) for f, c in counts.iteritems() if c > 1]
Пример #2
0
 def filter_multi():
     """Filter and return files that were written more than once."""
     counts = defaultdict(int)
     files = stats.kvs_op("lrange", key, 0, -1)
     for file in files:
         counts[file] += 1
     return [(f, c) for f, c in counts.iteritems() if c > 1]
Пример #3
0
 def _maintain_debug_stats(self):
     """Capture the file written if debug statistics are turned on."""
     key = stats.key_name(config.Config().job_id,
                          *stats.STATS_KEYS["hcls_xmlcurvewrites"])
     if key:
         stats.kvs_op("rpush", key, self.path)
Пример #4
0
 def _maintain_debug_stats(self):
     """Capture the file written if debug statistics are turned on."""
     key = stats.key_name(config.Config().job_id,
                          *stats.STATS_KEYS["hcls_xmlcurvewrites"])
     if key:
         stats.kvs_op("rpush", key, self.path)