1 | import { ExecutionConfig, APIConfig, SliceAnalyticsData, WorkerContext } from '../interfaces';
|
2 | import Observer from './observer';
|
3 |
|
4 |
|
5 |
|
6 | export default class JobObserver extends Observer {
|
7 | collectAnalytics: boolean;
|
8 | analyticsData: SliceAnalyticsData | undefined;
|
9 | protected _currentSliceId: string;
|
10 | protected _currentIndex: number;
|
11 | private _opLength;
|
12 | private _initialized;
|
13 | constructor(context: WorkerContext, apiConfig: APIConfig, executionConfig: ExecutionConfig);
|
14 | onSliceInitialized(sliceId: string): Promise<void>;
|
15 | onOperationStart(sliceId: string, index: number): void;
|
16 | onOperationComplete(sliceId: string, index: number, processed: number): void;
|
17 | private defaultAnalytics;
|
18 | }
|