@CommandHelp('Displays summary information for each datacenter.')
    def do_dc(self, line):
        dc_infos = self.logger.infoSummary(stanza='dc')
        dc_stats = self.logger.infoStatistics(stanza='dc')
        dc_config = self.logger.infoGetConfig(stanza='dc')
        for timestamp in sorted(dc_stats.keys()):
            if not dc_stats[timestamp]:
                try:
                    if dc_infos[timestamp]:
                        self.view.infoString(timestamp, dc_infos[timestamp])
                except:
                    pass
                continue
            for node in dc_stats[timestamp].keys():
                if dc_stats[timestamp][node] and not isinstance(dc_stats[timestamp][node],Exception) and dc_config[timestamp][node] and not isinstance(dc_config[timestamp][node],Exception):
                    for dc in dc_stats[timestamp][node].keys():
                        dc_stats[timestamp][node][dc].update(dc_config[timestamp][node][dc])
                elif (not dc_stats[timestamp][node] or isinstance(dc_stats[timestamp][node],Exception)) and dc_config[timestamp][node] and not isinstance(dc_config[timestamp][node],Exception):
                    dc_stats[timestamp][node] = dc_config[timestamp][node]
            self.view.infoDC(flip_keys(dc_stats[timestamp]), self.logger.get_log_snapshot(timestamp=timestamp), title_suffix=" (%s)"%(timestamp), **self.mods)
dataset/ETHPy150Open aerospike/aerospike-admin/lib/logcontroller.py/InfoController.do_dc/original