@@ -110,10 +110,10 @@ def build_from_fluent_connection(
110110 file_transfer_service : Optional [Any ] = None ,
111111 ):
112112 """Build a BaseSession object from fluent_connection object."""
113- self .fluent_connection = fluent_connection
113+ self ._fluent_connection = fluent_connection
114114 self ._file_transfer_service = file_transfer_service
115- self ._error_state = self . fluent_connection ._error_state
116- self .scheme_eval = self . fluent_connection .scheme_eval
115+ self ._error_state = fluent_connection ._error_state
116+ self .scheme_eval = fluent_connection .scheme_eval
117117 self .rp_vars = RPVars (self .scheme_eval .string_eval )
118118 self ._preferences = None
119119 self .journal = Journal (self .scheme_eval )
@@ -149,14 +149,14 @@ def build_from_fluent_connection(
149149 fluent_connection ._channel , fluent_connection ._metadata
150150 )
151151 self .events_manager = EventsManager (
152- self ._events_service , self ._error_state , self . fluent_connection ._id
152+ self ._events_service , self ._error_state , fluent_connection ._id
153153 )
154154
155155 self ._monitors_service = service_creator ("monitors" ).create (
156156 fluent_connection ._channel , fluent_connection ._metadata , self ._error_state
157157 )
158158 self .monitors_manager = MonitorsManager (
159- self . fluent_connection ._id , self ._monitors_service
159+ fluent_connection ._id , self ._monitors_service
160160 )
161161
162162 self .events_manager .register_callback (
@@ -168,7 +168,7 @@ def build_from_fluent_connection(
168168
169169 self .events_manager .start ()
170170
171- self ._field_data_service = self .fluent_connection .create_grpc_service (
171+ self ._field_data_service = self ._fluent_connection .create_grpc_service (
172172 FieldDataService , self ._error_state
173173 )
174174
@@ -187,7 +187,7 @@ def __init__(self, _session):
187187 _session .scheme_eval ,
188188 )
189189 self .field_data_streaming = FieldDataStreaming (
190- _session .fluent_connection ._id , _session ._field_data_service
190+ _session ._fluent_connection ._id , _session ._field_data_service
191191 )
192192
193193 self .fields = Fields (self )
@@ -202,7 +202,7 @@ def __init__(self, _session):
202202 self .health_check_service = fluent_connection .health_check_service
203203 self .connection_properties = fluent_connection .connection_properties
204204
205- self .fluent_connection .register_finalizer_cb (
205+ self ._fluent_connection .register_finalizer_cb (
206206 self .datamodel_service_se .unsubscribe_all_events
207207 )
208208 for obj in (
@@ -211,7 +211,7 @@ def __init__(self, _session):
211211 self .events_manager ,
212212 self .monitors_manager ,
213213 ):
214- self .fluent_connection .register_finalizer_cb (obj .stop )
214+ self ._fluent_connection .register_finalizer_cb (obj .stop )
215215
216216 @property
217217 def field_info (self ):
@@ -243,7 +243,7 @@ def field_data_streaming(self):
243243 @property
244244 def id (self ) -> str :
245245 """Return the session ID."""
246- return self .fluent_connection ._id
246+ return self ._fluent_connection ._id
247247
248248 def start_journal (self , file_name : str ):
249249 """Executes tui command to start journal."""
@@ -301,12 +301,12 @@ def get_fluent_version(self) -> FluentVersion:
301301 def exit (self , ** kwargs ) -> None :
302302 """Exit session."""
303303 logger .debug ("session.exit() called" )
304- self .fluent_connection .exit (** kwargs )
304+ self ._fluent_connection .exit (** kwargs )
305305
306306 def force_exit (self ) -> None :
307307 """Immediately terminates the Fluent session, losing unsaved progress and
308308 data."""
309- self .fluent_connection .force_exit ()
309+ self ._fluent_connection .force_exit ()
310310
311311 def upload (self , file_name : str ):
312312 """Upload a file to the server.
0 commit comments