Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PidmanProcess

Hierarchy

  • PidmanProcess

Index

Constructors

constructor

Properties

Private #child

#child: ChildProcess | undefined

Private #closeEvent

#closeEvent: Observable<[]>

Private #dataEvent

#dataEvent: Observable<unknown>

Private #errorEvent

#errorEvent: Observable<unknown>

Private #forkedCloseEvent

#forkedCloseEvent: Observable<unknown>

Private #forkedPID

#forkedPID: number = 0

Private #stderrEvent

#stderrEvent: Observable<unknown>

Private #subscriptionsMap

#subscriptionsMap: ProcessEventSubscriptions

group

group: PidmanGroup | undefined

Private options

output

output: string | null

running

running: boolean = false

Methods

deserialize

getChildProcess

  • getChildProcess(): ChildProcess | undefined
  • Returns the Node's [[ChildProcess]]. You may not need to use this one.

    Returns ChildProcess | undefined

    ChildProcess

getGroup

getOptions

kill

  • kill(signal?: NodeJS.Signals): Promise<boolean>
  • Kills this process.

    Parameters

    • Optional signal: NodeJS.Signals

    Returns Promise<boolean>

    Promise

run

  • run(): void

serialize

  • serialize(): unknown

setGroup

startMonitoring

  • startMonitoring(): void
  • For internal use only. Do not call directly.

    Returns void

    void

unsubscribeAll

  • unsubscribeAll(): void

Generated using TypeDoc