UNPKG

627 BPlain TextView Raw
1
2import {field, document} from '../mongoose/decorators';
3import {Strict} from '../mongoose/enums/';
4import {onetomany, manytoone, manytomany, onetoone} from '../core/decorators';
5
6
7export interface IWorkerProcess {
8
9
10 machineID?: string;
11
12
13 processId?: string;
14
15
16 serverId?: string;
17
18
19 workerId?: number; //possible VLAUES from 1 to N
20
21
22
23 sessionId?: string; //possible VLAUES from 1 to N
24
25
26 role?: string; //possible VLAUES from 1 to N
27
28 status?: string; //active , idle , killed
29
30
31 statistics?: { noOfTransactioSoFar: number, activeSince: Date, velocity: number }
32 channels?: string[];
33
34}
35
36
37