def __init__(self, topology, service, environment, alternative): Thread.__init__(self) """ Utils objects """ # Get the object for filesystem handling self._fs = FileSystem.get_instance() # Logger self._log = Logger.get_instance() # Root simulation path (simulation/) self._root_simulation_path = self._fs.get_simulations_folder() # Specific simulation path (simulation/service_name/timestamp/) self._simulation_path = None # The topology self._topology = topology # Service to evaluate self._service = service # The environment in which this simulation is running self._environment = environment # The alternative of the service to evaluate self._alternative = alternative # The metrics to evaluate during this simulation self._metrics = alternative.get_metrics() # Extractor count. This variable is used to keep track of how many extractors notified this object self._extractor_number = len(self._metrics) self._extractor_count = 0 # Initialize the simulation self._init()
def __init__(self, controller_path, controller_cmd): # Get the framework file system handler self._fs = FileSystem.get_instance() # Logger self._log = Logger.get_instance() # Controller's parameters self._path = controller_path self._cmd = controller_cmd # The controller process self._controller_process = None
def __init__(self): Extractor.__init__(self) # The FileSystem handler self._fs = FileSystem.get_instance()
def __init__(self): # FileSystem handler self._fs = FileSystem.get_instance() # Logger self._log = Logger.get_instance()
def __init__(self): Collector.__init__(self) self._sniffer = None # Logger self._fs = FileSystem.get_instance()
def __init__(self): # The reference to the FileSystem object, useful for writing configuration in tmp folder self._fs = FileSystem.get_instance() # Logger self._log = Logger.get_instance()