deephaven.systemic_obj_tracker¶
This module allows user to enable/disable Deephaven systemic object marking. When enabled, Deephaven will mark all objects created in the current thread as systemic. These systemic objects will be tracked and if errors occur to them, the errors are deemed to be systemic and fatal.
- is_systemic()[source]¶
Returns whether the current thread is systemic. If true, objects created on this thread are treated as systemic.
- Return type:
bool
- is_systemic_object_marking_enabled()[source]¶
Returns True if the systemic object marking is enabled. When enabled, the current thread can be marked as systemic or not systemic.
- Return type:
bool
- no_systemic_object_marking()[source]¶
A Context manager to ensure the current thread is marked as not systemic for the execution of the enclosed code block. On exit, the thread is restored to its previous systemic state.
- Raises:
DHError – If the systemic object marking is not enabled.
- Return type:
None
- set_systemic(systemic)[source]¶
Sets whether the current thread is systemic. If true, objects created on this thread are treated as systemic.
- Parameters:
systemic (bool) – True to mark the current thread as systemic, False to mark it as not systemic.
- Raises:
DHError – If the systemic object marking is not enabled.
- Return type:
None