X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=1a2dd165113188d52690eafb4ed5d4f64da553d5;hb=ae8ee665e864460d582b7f6d501b25225a1d7a4c;hp=9c7c098e2395667660f43138dd6616755bf3d072;hpb=322c9192eaa7142da1bf475cc2c6588ca72d922c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 9c7c098e..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,18 +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;