X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=1a2dd165113188d52690eafb4ed5d4f64da553d5;hb=16b0d4e77d20b5f7004469f2206a0af1ee8984a5;hp=125ecef636d693afc840fd16b35abde81308a0ec;hpb=a4624c96a6c159b4885f5d0baaf592ceec0bab30;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 125ecef6..1a2dd165 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -1,3 +1,5 @@ +import { StorageType } from './Storage'; +import type { WorkerChoiceStrategy } from 'poolifier'; import { WorkerProcessType } from './Worker'; export interface StationTemplateURL { @@ -5,17 +7,25 @@ export interface StationTemplateURL { numberOfStations: number; } +export interface StorageConfiguration { + enabled?: boolean; + type?: StorageType; + URI?: string; +} + export default interface ConfigurationData { supervisionURLs?: string[]; stationTemplateURLs: StationTemplateURL[]; - statisticsDisplayInterval?: number; - connectionTimeout?: number; + performanceStorage?: StorageConfiguration; autoReconnectMaxRetries?: number; distributeStationsToTenantsEqually?: boolean; workerProcess?: WorkerProcessType; + workerStartDelay?: number; workerPoolMinSize?: number; workerPoolMaxSize?: number; + workerPoolStrategy?: WorkerChoiceStrategy; chargingStationsPerWorker?: number; + logStatisticsInterval?: number; logFormat?: string; logLevel?: string; logRotate?: boolean;