Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TaskServer

Hierarchy

Index

Methods

customExecutionComplete

  • customExecutionComplete(id: number, exitCode: undefined | number): Promise<void>

disconnectClient

dispose

  • dispose(): void
  • Dispose this object.

    Returns void

Optional getClient

  • Returns undefined | TaskClient

getRegisteredTaskTypes

  • getRegisteredTaskTypes(): Promise<string[]>

getTasks

  • getTasks(ctx?: string): Promise<TaskInfo[]>
  • Returns a list of currently running tasks. If a context is provided, only the tasks started in that context will be provided. Using an undefined context matches all tasks, no matter the creation context.

    Parameters

    • Optional ctx: string

    Returns Promise<TaskInfo[]>

kill

  • kill(taskId: number): Promise<void>

run

setClient

  • If this server is a proxy to a remote server then a client is used as a local object to handle JSON-RPC messages from the remote server.

    Parameters

    Returns void