def __init__(self, orchestrator, instance_config): # The Orchestrator object this manager belongs to self._orchestrator = orchestrator # The global config of the orchestrator self._config = orchestrator.config # ManagerConfig for this instance self._instance_config = instance_config # Named used for display/system purposes self._name = '{}{:03}'.format(self.key, instance_config.id) # Used to track errors, warnings and info messages in the client and the error status. self._error_manager = ErrorManager() # Set by children when they grab a peer_port self._peer_port = None # Registry for the periodic tasks self._periodic_tasks = [] # Current instance of SessionStats, as last obtained from the client self._session_stats = None # Has the client been fully initialized (all initial data loaded) self._initialized = False # Initialization time from launch in seconds self._initialize_time_seconds = None # When the instance was launched self._launch_datetime = None