X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=91437807a629363c6df60260c4397fe1d4916726;hb=7170127d905a1af7a64c0c01ae81c1f892cfc278;hp=29a443aabd2e118cc896c9fbb1d162327726c278;hpb=e118beaab2fe63c663d5a969085c682ca05b6554;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 29a443aa..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,14 +10,19 @@ export default interface ConfigurationData { supervisionURLs?: string[]; stationTemplateURLs: StationTemplateURL[]; statisticsDisplayInterval?: number; - autoReconnectTimeout?: number; autoReconnectMaxRetries?: number; - distributeStationToTenantEqually?: boolean; - useWorkerPool?: boolean; - workerPoolSize?: number; + distributeStationsToTenantsEqually?: boolean; + workerProcess?: WorkerProcessType; + workerStartDelay?: number; + workerPoolMinSize?: number; + workerPoolMaxSize?: number; + workerPoolStrategy?: WorkerChoiceStrategy; + chargingStationsPerWorker?: number; logFormat?: string; logLevel?: string; + logRotate?: boolean; + logMaxFiles?: number; logFile?: string; - errorFile?: string; - consoleLog?: boolean; + logErrorFile?: string; + logConsole?: boolean; }