X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=ffbb7deca5994abb61e9b5fc4736e4fb14b1cf61;hb=8f8f87c4fd9a0863d0aeb4a9a8671d1a2b4308e0;hp=7f5353f4c391ac2ca17c12e51b7f4d9d7bcb37fc;hpb=68220b423c52da387fdf41967dd8c738da0ff52e;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 7f5353f4..ffbb7dec 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -3,9 +3,9 @@ import type { ResourceLimits } from 'node:worker_threads' import type { WorkerChoiceStrategy } from 'poolifier' +import type { WorkerProcessType } from '../worker/index.js' import type { StorageType } from './Storage.js' import type { ApplicationProtocol, AuthenticationType } from './UIProtocol.js' -import type { WorkerProcessType } from '../worker/index.js' type ServerOptions = ListenOptions @@ -13,18 +13,19 @@ export enum ConfigurationSection { log = 'log', performanceStorage = 'performanceStorage', worker = 'worker', - uiServer = 'uiServer', + uiServer = 'uiServer' } export enum SupervisionUrlDistribution { ROUND_ROBIN = 'round-robin', RANDOM = 'random', - CHARGING_STATION_AFFINITY = 'charging-station-affinity', + CHARGING_STATION_AFFINITY = 'charging-station-affinity' } export interface StationTemplateUrl { file: string numberOfStations: number + provisionedNumberOfStations?: number } export interface LogConfiguration { @@ -42,7 +43,7 @@ export interface LogConfiguration { export enum ApplicationProtocolVersion { VERSION_11 = 1.1, - VERSION_20 = 2.0, + VERSION_20 = 2.0 } export interface UIServerConfiguration { @@ -70,7 +71,9 @@ export interface WorkerConfiguration { processType?: WorkerProcessType startDelay?: number elementsPerWorker?: ElementsPerWorkerType + /** @deprecated Use `elementAddDelay` instead. */ elementStartDelay?: number + elementAddDelay?: number poolMinSize?: number poolMaxSize?: number resourceLimits?: ResourceLimits @@ -84,14 +87,14 @@ export interface ConfigurationData { worker?: WorkerConfiguration uiServer?: UIServerConfiguration performanceStorage?: StorageConfiguration - /** @deprecated Moved to charging station template */ + /** @deprecated Moved to charging station template. */ autoReconnectMaxRetries?: number /** @deprecated Moved to worker configuration section. */ workerProcess?: WorkerProcessType /** @deprecated Moved to worker configuration section. */ workerStartDelay?: number /** @deprecated Moved to worker configuration section. */ - elementStartDelay?: number + elementAddDelay?: number /** @deprecated Moved to worker configuration section. */ workerPoolMinSize?: number /** @deprecated Moved to worker configuration section. */