Switch rollup bundler TS plugin to rollup-plugin-ts
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
index e056471cfe5ed160513d727e5ca124627d07fb7a..1a2dd165113188d52690eafb4ed5d4f64da553d5 100644 (file)
@@ -1,19 +1,31 @@
+import { StorageType } from './Storage';
+import type { WorkerChoiceStrategy } from 'poolifier';
+import { WorkerProcessType } from './Worker';
+
 export interface StationTemplateURL {
   file: string;
   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;
-  useWorkerPool?: boolean;
-  workerPoolSize?: number;
-  chargingStationsPerWorker: number;
-  chargingStationIdSuffix: string;
+  workerProcess?: WorkerProcessType;
+  workerStartDelay?: number;
+  workerPoolMinSize?: number;
+  workerPoolMaxSize?: number;
+  workerPoolStrategy?: WorkerChoiceStrategy;
+  chargingStationsPerWorker?: number;
+  logStatisticsInterval?: number;
   logFormat?: string;
   logLevel?: string;
   logRotate?: boolean;