Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace PM

This namespace dedicated to all operations related to system process management

Index

Type aliases

ModelTypeClass

ModelTypeClass: { constructor: any }

Alias to all classes that extends BaseModel

Type declaration

ProcessType

A process is either an instance of an application or a service

Variables

pidalloc

pidalloc: number = 0

Process id allocator, when a new process is created, the value of this variable is increased

processes

processes: GenericObject<BaseModel[]>

All running processes is stored in this variables

Functions

appByPid

createProcess

kill

killAll

  • killAll(app: string, force: boolean): void
  • Kill all process of an application or service

    export

    Parameters

    • app: string

      process class name

    • force: boolean

      force exit all process

    Returns void