interceptor#
Interception of the settings service.
Every settings write and command of a product’s settings tree goes through its
settings service (set_var, execute_cmd, create, …).
ResilientSettingsService wraps that service and routes the
state-changing calls through the ResilientController. Every other call
(reads and queries) is delegated to the product service; if it fails because
the server died, the controller fails over and repeats the read.
Classes:
|
Resilience-enabled proxy of a product settings service. |
- class ansys.fluent.core.resilient.engine.interceptor.ResilientSettingsService(inner, controller)#
Bases:
objectResilience-enabled proxy of a product settings service.
- Parameters:
- inner
The product settings service.
- controller
ResilientController The controller that owns the resilient state of the session.
Methods:
__init__(inner, controller)create(path, name)Create a named object (journaled).
delete(path, name)Delete a named object (journaled).
execute_cmd(path, command, **kwds)Execute a command with checkpointing, rollback, journaling and failover.
rebind_inner(inner)Wrap a different product settings service (after a failover).
rename(path, new, old)Rename a named object (journaled).
resize_list_object(path, size)Resize a list object (journaled).
set_var(path, value)Set a value with journaling and failover.
Attributes:
Return the wrapped product settings service.
- __init__(inner, controller)#
- create(path, name)#
Create a named object (journaled).
- delete(path, name)#
Delete a named object (journaled).
- execute_cmd(path, command, **kwds)#
Execute a command with checkpointing, rollback, journaling and failover.
- rebind_inner(inner)#
Wrap a different product settings service (after a failover).
- rename(path, new, old)#
Rename a named object (journaled).
- resize_list_object(path, size)#
Resize a list object (journaled).
- set_var(path, value)#
Set a value with journaling and failover.