1 | import { SlicerFn, OpConfig } from '../interfaces';
|
2 | import SlicerCore from './core/slicer-core';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export default abstract class ParallelSlicer<T = OpConfig> extends SlicerCore<T> {
|
8 | protected _slicers: SlicerObj[];
|
9 | |
10 |
|
11 |
|
12 |
|
13 | initialize(recoveryData: object[]): Promise<void>;
|
14 | |
15 |
|
16 |
|
17 |
|
18 | shutdown(): Promise<void>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | abstract newSlicer(): Promise<SlicerFn | undefined>;
|
24 | slicers(): number;
|
25 | handle(): Promise<boolean>;
|
26 | readonly isFinished: boolean;
|
27 | private processSlicer;
|
28 | }
|
29 | interface SlicerObj {
|
30 | done: boolean;
|
31 | fn: SlicerFn;
|
32 | id: number;
|
33 | processing: boolean;
|
34 | order: number;
|
35 | }
|
36 | export {};
|