streamsight.registries.AlgorithmStatusEntry
- class streamsight.registries.AlgorithmStatusEntry(name: str, algo_id: UUID, state: AlgorithmStateEnum, data_segment: int | None = None, algo_ptr: Algorithm | None = None)
Bases:
object
Entry for the algorithm status registry
This entry is used to store the status of the algorithm in
AlgorithmStatusRegistry
. The entry contains the name of the algorithm, the unique identifier for the algorithm, the state of the algorithm, the data segment the algorithm is associated with, and a pointer to the algorithm object.This entry is mainly used during the streaming process in the
EvaluatorStreamer
to keep track of the state of the algorithm.- Parameters:
name (str) – Name of the algorithm
algo_id (UUID) – Unique identifier for the algorithm
state (AlgorithmStateEnum) – State of the algorithm
data_segment (Optional[int]) – Data segment the algorithm is associated with
algo_ptr (Optional[Any]) – Pointer to the algorithm object
- __init__(name: str, algo_id: UUID, state: AlgorithmStateEnum, data_segment: int | None = None, algo_ptr: Algorithm | None = None) None
Methods
__init__
(name, algo_id, state[, ...])Attributes
- algo_id: UUID
- data_segment: int | None = None
- name: str
- state: AlgorithmStateEnum