[ ] After receiving the request , before processing the callbacks , a request-id shall be generated and sent to the requestor as a response.
[ ] This generated request-id and the requestor details shall be stored in a temporary data store to send the final result as a callback to the requestor
For example , two maps shall be included to temporarily maintained in a global datastore,
switchOffTXPairRequestMap // to store and map the generated request-id to the requestor details
switchOffTXPairTransactionMap // to store and map the consequent callback’s request-id to the request-id of the initial request
switchOffTXPairRequestMap.set(“main request-id” , {“requestor-ip”,”port”,”callback url”}} //The generated request-id and the requestor details shall be stored,
After responding with the request-id to the requestor , process the following callbacks,
Getting information about the parallel links
If a parallel link is available for the provided link-id , then the provided link's transmitters shall be switchedOFF so that power will be saved. So , to check whether a parallel link is available ,
[ ] Perform the callback RequestForSwitchingRedundantTransmitterPairOffInitiatesTransaction.GetInfoAboutParallelLinks
This is a call to the API /v1/provide-transmitter-status-of-parallel-links in the AIPS application itself via the REST layer.
While formulating the request body , the value for the "requestor-receive-operation AIPS::/v1/receive-power-saving-activation-status " attribute needs to be hardcoded as there is no pointer available to trace it automatically.
Response for this callback is again a request-id which shall be included in the transaction management map.
For example
switchOffTXPairTransactionMap.set(“callback-request-id : “main request-id” }
:information_source: Further , if a parallel link is available , then AIPS::/v1/provide-transmitter-status-of-parallel-links will inform AIPS via the API AIPS::/v1/receive-power-saving-activation-status.
For example , two maps shall be included to temporarily maintained in a global datastore,
After responding with the request-id to the requestor , process the following callbacks,
Getting information about the parallel links
If a parallel link is available for the provided link-id , then the provided link's transmitters shall be switchedOFF so that power will be saved. So , to check whether a parallel link is available ,