def __init__(self, configuration, zoo_keeper, web_socket_clients,
              time_estimate_cache):
     """
     :type configuration: zoom.config.configuration.Configuration
     :type zoo_keeper: kazoo.client.KazooClient
     :type web_socket_clients: list
     """
     self._cache = ApplicationDependenciesMessage()
     self._configuration = configuration
     self._zoo_keeper = zoo_keeper
     self._web_socket_clients = web_socket_clients
     self._time_estimate_cache = time_estimate_cache
     self._message_throttle = MessageThrottle(configuration,
                                              web_socket_clients)
예제 #2
0
 def __init__(self, configuration, web_socket_clients):
     """
     :type configuration: zoom.www.config.configuration.Configuration
     :type web_socket_clients: list
     """
     self.configuration = configuration
     self._web_socket_clients = web_socket_clients
     self._message_throttle = MessageThrottle(configuration,
                                              web_socket_clients)
     self.graphite = GraphiteAvailability(
         configuration.graphite_host,
         recheck=configuration.graphite_recheck)
     self.graphite_cache = {}
     self.dependencies = {}
     self.states = {}
예제 #3
0
    def __init__(self, configuration, zoo_keeper, web_socket_clients,
                 time_estimate_cache):
        """
        :type configuration: zoom.config.configuration.Configuration
        :type zoo_keeper: zoom.zoo_keeper.ZooKeeper
        :type web_socket_clients: list
        :type time_estimate_cache: zoom.www.cache.time_estimate_cache.TimeEstimateCache
        """
        self._path_to_host_mapping = dict()
        self._configuration = configuration
        self._cache = ApplicationStatesMessage()
        self._cache.set_environment(self._configuration.environment)
        self._zoo_keeper = zoo_keeper
        self._web_socket_clients = web_socket_clients

        self._time_estimate_cache = time_estimate_cache
        self._message_throttle = MessageThrottle(configuration,
                                                 web_socket_clients)