Switch rollup bundler TS plugin to rollup-plugin-ts
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
index 29a443aabd2e118cc896c9fbb1d162327726c278..1a2dd165113188d52690eafb4ed5d4f64da553d5 100644 (file)
@@ -1,20 +1,36 @@
+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;
-  autoReconnectTimeout?: number;
+  performanceStorage?: StorageConfiguration;
   autoReconnectMaxRetries?: number;
-  distributeStationToTenantEqually?: boolean;
-  useWorkerPool?: boolean;
-  workerPoolSize?: number;
+  distributeStationsToTenantsEqually?: boolean;
+  workerProcess?: WorkerProcessType;
+  workerStartDelay?: number;
+  workerPoolMinSize?: number;
+  workerPoolMaxSize?: number;
+  workerPoolStrategy?: WorkerChoiceStrategy;
+  chargingStationsPerWorker?: number;
+  logStatisticsInterval?: number;
   logFormat?: string;
   logLevel?: string;
+  logRotate?: boolean;
+  logMaxFiles?: number;
   logFile?: string;
-  errorFile?: string;
-  consoleLog?: boolean;
+  logErrorFile?: string;
+  logConsole?: boolean;
 }