Class KernelManager

An implementation of a kernel manager.

Hierarchy

Implements

Constructors

Properties

_connectionFailure: any
_isReady: any
_kernelConnections: any
_models: any
_onDisposed: any
_onStarted: any

Handle a kernel starting.

_onStatusChanged: any
_pollModels: any
_ready: any
_runningChanged: any
serverSettings: ServerConnection.ISettings

The server settings for the manager.

Accessors

  • get connectionFailure(): ISignal<this, Error>
  • A signal emitted when there is a connection failure.

    Returns ISignal<this, Error>

  • get disposed(): ISignal<this, void>
  • A signal emitted when the delegate is disposed.

    Returns ISignal<this, void>

  • get isActive(): boolean
  • Whether the manager is active.

    Returns boolean

  • get isDisposed(): boolean
  • Test whether the delegate has been disposed.

    Returns boolean

  • get isReady(): boolean
  • Test whether the manager is ready.

    Returns boolean

  • get ready(): Promise<void>
  • A promise that fulfills when the manager is ready.

    Returns Promise<void>

Methods

  • Dispose of the resources used by the manager.

    Returns void

  • Find a kernel by id.

    Parameters

    • id: string

      The id of the target kernel.

    Returns Promise<Kernel.IModel>

    A promise that resolves with the kernel's model.

  • Force a refresh of the running kernels.

    Returns Promise<void>

    A promise that resolves when the running list has been refreshed.

    Notes

    This is not typically meant to be called by the user, since the manager maintains its own internal state.

  • Execute a request to the server to poll running kernels and update state.

    Returns Promise<void>

  • Create an iterator over the most recent running kernels.

    Returns IterableIterator<Kernel.IModel>

    A new iterator over the running kernels.

  • Shut down a kernel by id.

    Parameters

    • id: string

      The id of the target kernel.

    Returns Promise<void>

    A promise that resolves when the operation is complete.

  • Shut down all kernels.

    Returns Promise<void>

    A promise that resolves when all of the kernels are shut down.

Generated using TypeDoc