repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refine UI server attributes scope and type
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
ConfigurationData.ts
diff --git
a/src/types/ConfigurationData.ts
b/src/types/ConfigurationData.ts
index 10f2565a81f52a5b874c3331771cdd110c83a7f9..a7b22af6bbcd47c9726398a8ebd5de55d22b057a 100644
(file)
--- a/
src/types/ConfigurationData.ts
+++ b/
src/types/ConfigurationData.ts
@@
-1,16
+1,22
@@
-import { ServerOptions } from 'ws';
import { StorageType } from './Storage';
import { StorageType } from './Storage';
+import { ServerOptions as WSServerOptions } from 'ws';
import type { WorkerChoiceStrategy } from 'poolifier';
import { WorkerProcessType } from './Worker';
import type { WorkerChoiceStrategy } from 'poolifier';
import { WorkerProcessType } from './Worker';
+export enum SupervisionUrlDistribution {
+ ROUND_ROBIN = 'round-robin',
+ RANDOM = 'random',
+ SEQUENTIAL = 'sequential',
+}
+
export interface StationTemplateUrl {
file: string;
numberOfStations: number;
}
export interface StationTemplateUrl {
file: string;
numberOfStations: number;
}
-export interface UI
WebSocket
ServerConfiguration {
+export interface UIServerConfiguration {
enabled?: boolean;
enabled?: boolean;
- options?: ServerOptions;
+ options?:
WS
ServerOptions;
}
export interface StorageConfiguration {
}
export interface StorageConfiguration {
@@
-20,14
+26,15
@@
export interface StorageConfiguration {
}
export default interface ConfigurationData {
}
export default interface ConfigurationData {
- supervisionUrls?: string[];
+ supervisionUrls?: string | string[];
+ supervisionUrlDistribution?: SupervisionUrlDistribution;
stationTemplateUrls: StationTemplateUrl[];
stationTemplateUrls: StationTemplateUrl[];
- ui
WebSocketServer?: UIWebSocket
ServerConfiguration;
+ ui
Server?: UI
ServerConfiguration;
performanceStorage?: StorageConfiguration;
autoReconnectMaxRetries?: number;
performanceStorage?: StorageConfiguration;
autoReconnectMaxRetries?: number;
- distributeStationsToTenantsEqually?: boolean;
workerProcess?: WorkerProcessType;
workerStartDelay?: number;
workerProcess?: WorkerProcessType;
workerStartDelay?: number;
+ elementStartDelay?: number;
workerPoolMinSize?: number;
workerPoolMaxSize?: number;
workerPoolStrategy?: WorkerChoiceStrategy;
workerPoolMinSize?: number;
workerPoolMaxSize?: number;
workerPoolStrategy?: WorkerChoiceStrategy;