def __init__(self): self._logger = logger.getChild("bi.compiler") self._compiled_with_sitestatus = None self._compiled_aggregations = {} self._path_compilation_lock = Path(get_cache_dir(), "compilation.LOCK") self._path_compilation_timestamp = Path(get_cache_dir(), "last_compilation") self._path_compiled_aggregations = Path(get_cache_dir(), "compiled_aggregations") self._path_compiled_aggregations.mkdir(parents=True, exist_ok=True)
def __init__(self, bi_configuration_file, sites_callback: SitesCallback): self._sites_callback = sites_callback self._bi_configuration_file = bi_configuration_file self._logger = logger.getChild("bi.compiler") self._compiled_aggregations: Dict[str, BICompiledAggregation] = {} self._path_compilation_lock = Path(get_cache_dir(), "compilation.LOCK") self._path_compilation_timestamp = Path(get_cache_dir(), "last_compilation") self._path_compiled_aggregations = Path(get_cache_dir(), "compiled_aggregations") self._path_compiled_aggregations.mkdir(parents=True, exist_ok=True) self._redis_client: Optional["RedisDecoded"] = None self._setup()
def __init__(self): self._logger = logger.getChild("bi.compiler") self._compiled_with_sitestatus = None self._compiled_aggregations: Dict[str, BICompiledAggregation] = {} self._path_compilation_lock = Path(get_cache_dir(), "compilation.LOCK") self._path_compilation_timestamp = Path(get_cache_dir(), "last_compilation") self._path_compiled_aggregations = Path(get_cache_dir(), "compiled_aggregations") self._path_compiled_aggregations.mkdir(parents=True, exist_ok=True) self._part_of_aggregation_map: Dict[Tuple[HostName, Optional[ServiceName]], List[Tuple[str, str]]] = {}
def __init__(self, bi_configuration_file, sites_callback: SitesCallback): self._sites_callback = sites_callback self._bi_configuration_file = bi_configuration_file self._logger = logger.getChild("bi.compiler") self._compiled_aggregations: Dict[str, BICompiledAggregation] = {} self._path_compilation_lock = Path(get_cache_dir(), "compilation.LOCK") self._path_compilation_timestamp = Path(get_cache_dir(), "last_compilation") self._path_compiled_aggregations = Path(get_cache_dir(), "compiled_aggregations") self._path_compiled_aggregations.mkdir(parents=True, exist_ok=True) self._part_of_aggregation_map: Dict[Tuple[HostName, Optional[ServiceName]], List[Tuple[str, str]]] = {} self._setup()