The TIBCO Spotfire Server has an end point that responds to GET requests for server status. Nominally, this will return an HttpStatus.OK and "RUNNING" when the server is fully operational. In other circumstances, it may return other indicators. This API may be used to give a developer an indication of the server's availability at the moment or over time. It could also give an end user an indication that the backend services are not reachable.
Ideally, this may be built upon in this branch or in future work to detect maintenance notices from the server or report additional information when the server is not fully operational.
Changes
Created a spotfire-server-service that periodically polls the end point to gather status
Added a div to the demo to display the result
Tests
In Chrome, determined that troubles pulling the end point due to CORS blocking the request were handled and displayed with an informational message.
In Chrome, with web security disabled, witnessed a good connection to the end point. Successful status was indicated.
Notes
If desired, this could be considered a work in progress and more enhancements may be added.
The version value should be changed considering the other open pull requests that may be merged to master before this.
Story
The TIBCO Spotfire Server has an end point that responds to GET requests for server status. Nominally, this will return an HttpStatus.OK and "RUNNING" when the server is fully operational. In other circumstances, it may return other indicators. This API may be used to give a developer an indication of the server's availability at the moment or over time. It could also give an end user an indication that the backend services are not reachable.
Ideally, this may be built upon in this branch or in future work to detect maintenance notices from the server or report additional information when the server is not fully operational.
Changes
Tests
Notes