Hi all,
We are working on the WSO2 Operations Center project. Currently, OC web app
is deployed with a Jaggery API. Recently the UI part was separated from the
web app and data are exposed to different gadgets. And also there may be
performance issues in the future if we continue with Jaggery
implementation. As an initial step,we are going to replace Jaggery API with
JAX-RS.
There are two main interfaces,where the OCAgent is communicating with the
internal API and publishing data to external UI or ues gadgets via external
API.
I am working on the external API part. Here are the improvements done up to
now.
Currently I have implemented 3 rest calls in the external API.
*1. GET oc/servers*
Returns a JSON array containing the data of all servers.
*2. GET oc/servers/{server-id}*
Returns a JSON object containing the data of the specific server
*3. PUT oc/servers/{server-id}/commands/{command-id}*
This rest is used to execute a command using the UI interface. Currently we
have only 4 commands.
1.FORCE_SHUTDOWN
2.FORCE_RESTART
3.GRACEFUL_SHUTDOWN
4.GRACEFUL_RESTART
These commands are sent to the server as a response of the synchronization
message.
Thanks,
--
*Chanaka Sampath Cooray*
Software Engineering Intern,
WSO2 Lanka (pvt) Ltd.
Mobile:+94713614884
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture