Class AbstractHostedInstanceManagerAbstract

Is responsible for running and handling separate Theia instance with given plugin.

Hierarchy (view full)

Implements

Constructors

Properties

hostedInstanceProcess: ChildProcess
hostedPluginProcess: HostedPluginProcess
hostedPluginSupport: HostedPluginSupport
instanceOptions: Omit<RequestOptions, "url">
instanceUri: URI
isPluginRunning: boolean = false
metadata: MetadataScanner
pluginUri: URI
request: RequestService

Methods

  • Start a loop to ping, if ping is OK return immediately, else start a new ping after 1second. We iterate for the given amount of loops provided in remainingCount

    Parameters

    • remainingCount: number

      the number of occurrence to check

    • resolve: ((value?) => void)

      resolve function if ok

        • (value?): void
        • Parameters

          • Optional value: void | Error | PromiseLike<void>

          Returns void

    • reject: ((value?) => void)

      reject function if error

        • (value?): void
        • Parameters

          • Optional value: void | Error | PromiseLike<void>

          Returns void

    Returns Promise<void>