Jérôme Benoit [Mon, 25 Jan 2021 22:39:52 +0000 (23:39 +0100)]
Fix worker thread exit message.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 22:03:56 +0000 (23:03 +0100)]
Display worker process mode at startup.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 20:49:39 +0000 (21:49 +0100)]
Type properly station worker data.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 20:30:29 +0000 (21:30 +0100)]
Switch to poolifier worker threads pool implementation.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 16:16:16 +0000 (17:16 +0100)]
Add ClearChargingProfile OCPP command support.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 11:17:08 +0000 (12:17 +0100)]
Add proper worker set elements reference counting.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 08:50:27 +0000 (09:50 +0100)]
Add missed file.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 08:44:50 +0000 (09:44 +0100)]
Add WorkerEvents enum.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 08:28:13 +0000 (09:28 +0100)]
Make filename = default exported class name.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 23:44:30 +0000 (00:44 +0100)]
Use object factory design pattern for code handling workers.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 21:12:13 +0000 (22:12 +0100)]
Move workers handling code in its own directory.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 19:22:57 +0000 (20:22 +0100)]
Fix charging stations counting.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 18:56:26 +0000 (19:56 +0100)]
Cleanup workers handling classes.
And various assorted fixes.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 23 Jan 2021 06:55:53 +0000 (07:55 +0100)]
Make some Wrk attributes conditionally initialized.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 23 Jan 2021 06:52:53 +0000 (07:52 +0100)]
Add WorkerPool file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 23 Jan 2021 06:51:56 +0000 (07:51 +0100)]
Rename private attributes and methods.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 22 Jan 2021 21:24:50 +0000 (22:24 +0100)]
Rename ChargingStationInfo.name -> ChargingStationInfo.chargingStationId
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 23:14:29 +0000 (00:14 +0100)]
Fix type cast
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 21:38:47 +0000 (22:38 +0100)]
Refine comment.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 21:29:06 +0000 (22:29 +0100)]
Add a default value for workerPoolMaxSize.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 17:57:31 +0000 (18:57 +0100)]
Add some sanity checks to Wrk class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 17:22:38 +0000 (18:22 +0100)]
Don't access singleton instance attribute directly
And sone cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jakob [Thu, 21 Jan 2021 15:01:57 +0000 (16:01 +0100)]
Fixed counters + start workers with delay
Jakob [Thu, 21 Jan 2021 14:59:25 +0000 (15:59 +0100)]
renaming (pool size != max pool size)
Jakob [Thu, 21 Jan 2021 14:55:22 +0000 (15:55 +0100)]
remove setMaxListener (not longer needed)
Jérôme Benoit [Thu, 21 Jan 2021 12:51:58 +0000 (13:51 +0100)]
Fix worker startup and cleanup some attributes in Wrk class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 12:10:16 +0000 (13:10 +0100)]
Fix worker with pool handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 10:35:03 +0000 (11:35 +0100)]
Cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 08:49:01 +0000 (09:49 +0100)]
Merge pull request #6 from LucasBrazi06/memory-optimization
Jakob [Wed, 20 Jan 2021 16:00:56 +0000 (17:00 +0100)]
Memory optimization + worker configuration
Jakob [Wed, 20 Jan 2021 15:54:37 +0000 (16:54 +0100)]
Authorize Request added
Jakob [Wed, 20 Jan 2021 15:36:23 +0000 (16:36 +0100)]
scripts to set CS public or delete CS
Jérôme Benoit [Tue, 19 Jan 2021 10:12:00 +0000 (11:12 +0100)]
Add git submodules init script.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 18 Jan 2021 18:57:29 +0000 (19:57 +0100)]
Dependencies update and cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 18 Jan 2021 18:26:57 +0000 (19:26 +0100)]
Force ATG stop is the charging station is unavailable.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 18 Jan 2021 16:33:36 +0000 (17:33 +0100)]
Fix worker pool superfluous creation by using a singleton class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 17 Jan 2021 16:44:15 +0000 (17:44 +0100)]
Handle availability and registration properly.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 15 Jan 2021 17:48:11 +0000 (18:48 +0100)]
Avoid code duplicatiom.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 14 Jan 2021 22:28:23 +0000 (23:28 +0100)]
Update dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 14 Jan 2021 22:22:21 +0000 (23:22 +0100)]
Handle missing interval in boot notification response.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 14 Jan 2021 21:15:17 +0000 (22:15 +0100)]
Fix type conversion to string.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 13 Jan 2021 21:35:19 +0000 (22:35 +0100)]
Type OCPP requests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 13 Jan 2021 18:16:46 +0000 (19:16 +0100)]
Update dependencies and submodules.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 9 Jan 2021 21:11:44 +0000 (22:11 +0100)]
Typing.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 8 Jan 2021 20:51:16 +0000 (21:51 +0100)]
Update dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 8 Jan 2021 16:28:07 +0000 (17:28 +0100)]
Sync with SAP GitHub.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 8 Jan 2021 16:25:07 +0000 (17:25 +0100)]
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
Jérôme Benoit [Sun, 3 Jan 2021 15:43:02 +0000 (16:43 +0100)]
Initial support to the change availability command.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 3 Jan 2021 12:38:47 +0000 (13:38 +0100)]
Fix log messsage.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 3 Jan 2021 12:34:02 +0000 (13:34 +0100)]
Remove _heartbeatInterval attribute.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 3 Jan 2021 00:41:41 +0000 (01:41 +0100)]
Untangle internal configuration key type from the OCPP one.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 2 Jan 2021 23:48:06 +0000 (00:48 +0100)]
Add enum for standard OCPP parameters key.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 2 Jan 2021 00:58:02 +0000 (01:58 +0100)]
Cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 23:48:17 +0000 (00:48 +0100)]
Type cast
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 19:48:43 +0000 (20:48 +0100)]
More typing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 18:53:53 +0000 (19:53 +0100)]
Type all requests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 18:15:26 +0000 (19:15 +0100)]
Add enum list for request command name.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 12:22:43 +0000 (13:22 +0100)]
Rename a constant.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 12:17:11 +0000 (13:17 +0100)]
Improve OCPP types.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 01:00:49 +0000 (02:00 +0100)]
Refine log messages.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 00:57:12 +0000 (01:57 +0100)]
Add comment
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 00:21:57 +0000 (01:21 +0100)]
Spell fix.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 00:02:27 +0000 (01:02 +0100)]
Remove some useless attributes to ChargingStation class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 31 Dec 2020 23:34:36 +0000 (00:34 +0100)]
Improve charging station registration handling.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 27 Dec 2020 10:37:59 +0000 (11:37 +0100)]
Dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 26 Dec 2020 20:41:33 +0000 (21:41 +0100)]
Renaming.
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Thu, 24 Dec 2020 18:54:07 +0000 (19:54 +0100)]
Do case insensitive OCPP parameter key matching in ChangeConfiguration
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ITCLOUDBUILD [Wed, 23 Dec 2020 11:38:39 +0000 (11:38 +0000)]
Prepare XMake Configuration
Jérôme Benoit [Tue, 22 Dec 2020 15:48:38 +0000 (16:48 +0100)]
Typing.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 22 Dec 2020 15:37:02 +0000 (16:37 +0100)]
Use generic for typing cloneObject helper.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 22 Dec 2020 12:08:27 +0000 (13:08 +0100)]
Add dependency for NTA build.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 21 Dec 2020 18:26:43 +0000 (19:26 +0100)]
Fix dependencies.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 17 Dec 2020 14:44:26 +0000 (15:44 +0100)]
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
Jérôme Benoit [Thu, 17 Dec 2020 14:06:23 +0000 (15:06 +0100)]
Add initial Cloud MTA Build Tool support.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 15 Dec 2020 20:49:46 +0000 (21:49 +0100)]
Update dependencies.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 13 Dec 2020 12:55:23 +0000 (13:55 +0100)]
Update dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 11 Dec 2020 17:11:04 +0000 (18:11 +0100)]
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
Jérôme Benoit [Fri, 11 Dec 2020 13:17:30 +0000 (14:17 +0100)]
Update submodule
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 11 Dec 2020 13:16:18 +0000 (14:16 +0100)]
Fix merge.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 11 Dec 2020 13:03:37 +0000 (14:03 +0100)]
Fix gitmodules ref.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 11 Dec 2020 11:49:58 +0000 (12:49 +0100)]
Merge branch 'master' of github.wdf.sap.corp:EVSE/ev-simulator
Jérôme Benoit [Thu, 10 Dec 2020 23:05:48 +0000 (00:05 +0100)]
Merge pull request #5 from LucasBrazi06/dependabot/npm_and_yarn/ini-1.3.7
Bump ini from 1.3.5 to 1.3.7
dependabot[bot] [Thu, 10 Dec 2020 22:25:16 +0000 (22:25 +0000)]
Bump ini from 1.3.5 to 1.3.7
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Thu, 10 Dec 2020 22:23:48 +0000 (23:23 +0100)]
Update deps.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Dec 2020 23:26:45 +0000 (00:26 +0100)]
Update deps.
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 8 Dec 2020 20:49:14 +0000 (21:49 +0100)]
Submodule ref update.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Dec 2020 11:11:18 +0000 (12:11 +0100)]
Fix the reconnect logic.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Dec 2020 09:10:08 +0000 (10:10 +0100)]
Dependencies update.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Dec 2020 20:38:43 +0000 (21:38 +0100)]
Add type sanity check to ChangeConfiguration OCPP command
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Dec 2020 15:51:05 +0000 (16:51 +0100)]
Removed useless type conversion.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Dec 2020 15:38:52 +0000 (16:38 +0100)]
Revert "Heartbeat interval is expected to be a string."
This reverts commit
03df629e6ac438a6963cf7241ccd767ed1b8530c.
Jérôme Benoit [Fri, 4 Dec 2020 15:09:13 +0000 (16:09 +0100)]
Heartbeat interval is expected to be a string.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Dec 2020 18:33:12 +0000 (19:33 +0100)]
Dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 30 Nov 2020 17:40:56 +0000 (18:40 +0100)]
Reference sub modules on the SAP internal GitHub.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Nov 2020 13:07:07 +0000 (14:07 +0100)]
Make SPRC resquest/response synchronous.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 28 Nov 2020 21:33:46 +0000 (22:33 +0100)]
Add connector Id 0 handling by default
Needed for charging profiles support.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 28 Nov 2020 19:36:03 +0000 (20:36 +0100)]
Initial support for SetChargingProfile command
Only store it at the connector level for now.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 28 Nov 2020 14:39:17 +0000 (15:39 +0100)]
Send meterStop at stop transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 28 Nov 2020 13:16:24 +0000 (14:16 +0100)]
Typing.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Nov 2020 21:05:12 +0000 (22:05 +0100)]
Type
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>