コード例 #1
0
    def replication_strategy(self):
        """If the datastore supports replication, return the strategy."""
        try:
            return repl_strategy.get_strategy(self.manager)
        except Exception as ex:
            LOG.debug("Cannot get replication strategy for '%s': %s" %
                      (self.manager, ex.message))

        return None
コード例 #2
0
ファイル: manager.py プロジェクト: HoratiusTang/trove
    def replication_strategy(self):
        """If the datastore supports replication, return the strategy."""
        try:
            return repl_strategy.get_strategy(self.manager)
        except Exception as ex:
            LOG.debug("Cannot get replication strategy for '%s': %s" % (
                      self.manager, ex.message))

        return None
コード例 #3
0
ファイル: manager.py プロジェクト: wffeige/trove
    def replication_strategy(self):
        """If the datastore supports replication, return the strategy."""
        try:
            return repl_strategy.get_strategy(self.manager)
        except Exception as ex:
            LOG.debug("Cannot get replication strategy for '%(manager)s': "
                      "%(msg)s", {'manager': self.manager, 'msg': ex.message})

        return None