Last configuration tunable rename.
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Nov 2020 10:21:48 +0000 (11:21 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Nov 2020 10:21:48 +0000 (11:21 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
docker/config.json
src/assets/config-template.json
src/charging-station/ChargingStation.ts
src/types/ConfigurationData.ts
src/utils/Configuration.ts

index 277f68f12f7a63361c77d428c3b45f15e365c0e9..f5b36a17804fc84ce833c5fa786d8540aff115b4 100644 (file)
@@ -5,7 +5,7 @@
   "statisticsDisplayInterval": 60,
   "autoReconnectTimeout": 10,
   "autoReconnectMaxRetries": 10,
-  "distributeStationToTenantEqually": true,
+  "distributeStationsToTenantsEqually": true,
   "useWorkerPool": false,
   "workerPoolSize": 16,
   "stationTemplateURLs": [
index b3085a7c3af0d0a87046731c06e7daa93f0dd3bf..7359a304a6a3a74ee7e1c9e3a149bf17b9145a52 100644 (file)
@@ -5,7 +5,7 @@
   "autoReconnectTimeout": 10,
   "autoReconnectMaxRetries": 10,
   "statisticsDisplayInterval": 60,
-  "distributeStationToTenantEqually": true,
+  "distributeStationsToTenantsEqually": true,
   "useWorkerPool": false,
   "workerPoolSize": 16,
   "stationTemplateURLs": [
index 56738bb688287e4138ad0e8736fdb7ada7973e16..d783b281406eade406906c95389f1894c9b4a2c7 100644 (file)
@@ -309,7 +309,7 @@ export default class ChargingStation {
     const supervisionUrls = Utils.cloneObject(this._stationInfo.supervisionURL ? this._stationInfo.supervisionURL : Configuration.getSupervisionURLs()) as string | string[];
     let indexUrl = 0;
     if (!Utils.isEmptyArray(supervisionUrls)) {
-      if (Configuration.getDistributeStationToTenantEqually()) {
+      if (Configuration.getDistributeStationsToTenantsEqually()) {
         indexUrl = this._index % supervisionUrls.length;
       } else {
         // Get a random url
index 3f51cb85c951184d6efe680d06272236bce08339..0570531dc5ccdb5c1bdbda9a544c5017a4c842ed 100644 (file)
@@ -9,7 +9,7 @@ export default interface ConfigurationData {
   statisticsDisplayInterval?: number;
   autoReconnectTimeout?: number;
   autoReconnectMaxRetries?: number;
-  distributeStationToTenantEqually?: boolean;
+  distributeStationsToTenantsEqually?: boolean;
   useWorkerPool?: boolean;
   workerPoolSize?: number;
   logFormat?: string;
index ab48cf310a1d9944bfcb0b763b6ff513edb368f8..9492bb9b37d631865ba0a750c53561d5c41859b4 100644 (file)
@@ -67,7 +67,7 @@ export default class Configuration {
     return Configuration.getConfig().supervisionURLs;
   }
 
-  static getDistributeStationToTenantEqually(): boolean {
-    return Utils.objectHasOwnProperty(Configuration.getConfig(), 'distributeStationToTenantEqually') ? Configuration.getConfig().distributeStationToTenantEqually : true;
+  static getDistributeStationsToTenantsEqually(): boolean {
+    return Utils.objectHasOwnProperty(Configuration.getConfig(), 'distributeStationsToTenantsEqually') ? Configuration.getConfig().distributeStationsToTenantsEqually : true;
   }
 }