X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=91437807a629363c6df60260c4397fe1d4916726;hb=6b10669bf67da4baa14bc5b28161710e4025c913;hp=e056471cfe5ed160513d727e5ca124627d07fb7a;hpb=3d2ff9e4875d166265bb925e00a4301e82f5c248;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index e056471c..91437807 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -1,3 +1,6 @@ +import type { WorkerChoiceStrategy } from 'poolifier'; +import { WorkerProcessType } from './Worker'; + export interface StationTemplateURL { file: string; numberOfStations: number; @@ -7,13 +10,14 @@ export default interface ConfigurationData { supervisionURLs?: string[]; stationTemplateURLs: StationTemplateURL[]; statisticsDisplayInterval?: number; - connectionTimeout?: number; autoReconnectMaxRetries?: number; distributeStationsToTenantsEqually?: boolean; - useWorkerPool?: boolean; - workerPoolSize?: number; - chargingStationsPerWorker: number; - chargingStationIdSuffix: string; + workerProcess?: WorkerProcessType; + workerStartDelay?: number; + workerPoolMinSize?: number; + workerPoolMaxSize?: number; + workerPoolStrategy?: WorkerChoiceStrategy; + chargingStationsPerWorker?: number; logFormat?: string; logLevel?: string; logRotate?: boolean;