The Middleware will start sending the heartbeat to the CentralApi from quartz job located in orchestrator every minute.
Type of change
[x] New feature (non-breaking change which adds functionality)
What has been changed?
Feature: Middleware will send heartbeat to the CentralApi to keep online status
How Has This Been Tested?
[x] Test A: Did run middlware from docker compose and got a request to get isOnline status and lastUpdatedTime which was isOnline=true and lastUpdatedTime less then 2 minutes of the current time
[x] Test B: Did run middlware from CentralAPI and RRedisInterface only, and got 2 request 4 minutes apart, to check isOnline status and lastUpdatedTime, the results showed same time for both request and isOnline = true for recent one and isOnline = false for another one which had more then 3 minute difference in requested time.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
The Middleware will start sending the heartbeat to the CentralApi from quartz job located in orchestrator every minute.
Type of change
What has been changed?
How Has This Been Tested?
[x] Test A: Did run middlware from docker compose and got a request to get isOnline status and lastUpdatedTime which was isOnline=true and lastUpdatedTime less then 2 minutes of the current time
[x] Test B: Did run middlware from CentralAPI and RRedisInterface only, and got 2 request 4 minutes apart, to check isOnline status and lastUpdatedTime, the results showed same time for both request and isOnline = true for recent one and isOnline = false for another one which had more then 3 minute difference in requested time.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes