Configuration options registration and useful routines.
Bases: object
Container for context variables.
Bases: oslo_messaging.serializer.NoOpSerializer
Bases: mistral.context.BaseContext
Bases: object
Registers group membership.
Because this method will be invoked on each service startup almost at the same time, so it must be synchronized, in case all the services are started within same process.
Bases: object
Service coordinator.
This class uses the tooz library to manage group membership.
To ensure that the other agents know this agent is still alive, the heartbeat method should be called periodically.
Gets members of coordination group.
ToozError exception must be handled when this function is invoded, we leave it to the invoker for the handling decision.
Bases: mistral.exceptions.DBError
Bases: mistral.exceptions.DBError
Bases: mistral.exceptions.DBError
Bases: exceptions.Exception
Bases: exceptions.Exception
Mistral specific error.
Reserved for situations that can’t be automatically handled. When it occurs it signals that there is a major environmental problem like invalid startup configuration or implementation problem (e.g. some code doesn’t take care of certain corner cases). From architectural perspective it’s pointless to try to handle this type of problems except doing some finalization work like transaction rollback, deleting temporary files etc.
Bases: exceptions.Exception
Mistral specific exception.
Reserved for situations that are not critical for program continuation. It is possible to recover from this type of problems automatically and continue program execution. Such problems may be related with invalid user input (such as invalid syntax) or temporary environmental problems.
In case if an instance of a certain exception type bubbles up to API layer then this type of exception it must be associated with an http code so it’s clear how to represent it for a client.
To correctly use this class, inherit from it and define a ‘message’ and ‘http_code’ properties.
Bases: object
Expression evaluator interface.
Having this interface gives the flexibility to change the actual expression language used in Mistral DSL for conditions, output calculation etc.
Evaluates the expression against the given data context.
Parameters: |
|
---|---|
Returns: | Expression result |
Check expression string and decide whether it is expression or not.
Parameters: | expression – Expression string |
---|---|
Returns: | True if string is expression |
Parse and validates the expression.
Parameters: | expression – Expression string |
---|---|
Returns: | True if expression is valid |
Bases: mistral.expressions.YAQLEvaluator
Bases: mistral.expressions.Evaluator
This module contains common structures and functions that help to handle AMQP messages based on olso.messaging framework.
Bases: object
Message listener endpoint.
Only handle notifications that match the NotificationFilter rule set into the filter_rule attribute of the endpoint.