ska_dlm.dlm_heuristics.heuristics

Heuristic implementations for DLM data lifecycle management.

NOTE: Generated by copilot from OID_phase_enforce sequence diagram.

PROMPT: Use this sequence diagram to create python code with a abstract class for heuristics and the OID Phase heuristics as one implementation.

Classes

BaseHeuristic(session)

Abstract base class for all heuristics.

ChangeOidPhaseHeuristic(session)

Heuristic to change the OID phase based on the change_oid_phase sequence diagram.

CombineUidPhasesHeuristic(session)

Heuristic to combine UID phases into a single actual phase.

DecreaseOidPhaseHeuristic(session)

Heuristic to decrease OID phase resilience by deleting UID instances.

DeleteUidHeuristic(session)

Heuristic to safely delete a UID payload while preserving OID resilience.

HeuristicResult(success[, message, data])

Result of a heuristic execution.

IncreaseOidPhaseHeuristic(session)

Heuristic to increase OID phase resilience by creating additional UID instances.

OidExpiryHeuristic(session)

Heuristic to discover expired OIDs and delete their UIDs.

OidPhaseEnforceHeuristic(session)

Heuristic to enforce OID phase consistency with UID phases and target phase.

UidExpiryHeuristic(session)

Heuristic to discover expired UIDs and delegate deletion.