Skip to main content

Class: VersionManager

Defined in: electron/services/monitoring/MigrationSystem.ts:564

Manages version state for monitor types.

Remarks

Tracks applied versions and timestamps for each monitor type. Used by orchestrators and migration utilities to record and query migration state.

Constructors

Constructor

new VersionManager(): VersionManager

Returns

VersionManager

Properties

versions

private readonly versions: Map<string, VersionInfo>

Defined in: electron/services/monitoring/MigrationSystem.ts:565

Methods

getAllVersions()

getAllVersions(): Map<string, VersionInfo>

Defined in: electron/services/monitoring/MigrationSystem.ts:573

Retrieves all version info for all monitor types.

Returns

Map<string, VersionInfo>

Map of monitor type to version info. Keys are monitor type strings, values are VersionInfo objects.


getVersion()

getVersion(monitorType: string): undefined | string

Defined in: electron/services/monitoring/MigrationSystem.ts:585

Gets the current version for a monitor type.

Parameters

monitorType

string

The monitor type.

Returns

undefined | string

The version string, or undefined if not set for this monitor type.


isVersionApplied()

isVersionApplied(monitorType: string, version: string): boolean

Defined in: electron/services/monitoring/MigrationSystem.ts:597

Checks if a specific version is applied for a monitor type.

Parameters

monitorType

string

The monitor type.

version

string

The version string to check.

Returns

boolean

True if the version is applied, false otherwise.


setVersion()

setVersion(monitorType: string, version: string): void

Defined in: electron/services/monitoring/MigrationSystem.ts:611

Sets the version for a monitor type.

Parameters

monitorType

string

The monitor type.

version

string

The version string to set.

Returns

void

Remarks

Updates the version info and timestamp for the given monitor type.