API implements the API required for the model migration master worker.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "MigrationMaster"
VERSION: number = 3
_transport: Transport
NAME: string = "MigrationMaster"
VERSION: number = 3

Methods

  • Export serializes the model associated with the API connection.

    Parameters

    • params: any

    Returns Promise<SerializedModel>

  • MigrationStatus returns the details and progress of the latest model migration.

    Parameters

    • params: any

    Returns Promise<MasterMigrationStatus>

  • MinionReportTimeout returns the configuration value for this controller that indicates how long the migration master worker should wait for minions to reported on phases of a migration.

    Parameters

    • params: any

    Returns Promise<StringResult>

  • MinionReports returns details of the reports made by migration minions to the controller for the current migration phase.

    Parameters

    • params: any

    Returns Promise<MinionReports>

  • ModelInfo returns essential information about the model to be migrated.

    Parameters

    • params: any

    Returns Promise<MigrationModelInfo>

  • Prechecks performs pre-migration checks on the model and (source) controller.

    Parameters

    Returns Promise<any>

  • ProcessRelations processes any relations that need updating after an export. This should help fix any remoteApplications that have been migrated.

    Parameters

    Returns Promise<any>

  • Reap removes all documents for the model associated with the API connection.

    Parameters

    • params: any

    Returns Promise<any>

  • SetPhase sets the phase of the active model migration. The provided phase must be a valid phase value, for example QUIESCE" or "ABORT". See the core/migration package for the complete list.

    Parameters

    Returns Promise<any>

  • SetStatusMessage sets a human readable status message containing information about the migration's progress. This will be shown in status output shown to the end user.

    Parameters

    Returns Promise<any>

  • SourceControllerInfo returns the details required to connect to the source controller for model migration.

    Parameters

    • params: any

    Returns Promise<MigrationSourceInfo>

  • Watch starts watching for an active migration for the model associated with the API connection. The returned id should be used with the NotifyWatcher facade to receive events.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

  • WatchMinionReports sets up a watcher which reports when a report for a migration minion has arrived.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

Generated using TypeDoc