Hi all,
We are working on 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 gadgets via external API.
I am going to implement internal API. Here are the improvements done up to
now.
There are 2 main resources identified with Internal API.
*POST* */oc/servers* - receives the registration message sent by
OC Agent at start up,
initialize sever with the
registration data set and returns a json
message with a generated sever-id
- sample registration message
{"ip":"10.100.4.113","serverName":"ApplicationServer","serverVersion":"5.2.1","domain":"wso2.as.domain","subDomain":"worker","adminServiceUrl":"
https://10.100.4.113:9455/","startTime":"2015-02-18 15:15:50","os":"Linux
Mint 17 Qiana","totalMemory":8090.402816 ,"cpuCount":4, "cpuSpeed":2.4
,"timestamp":1424252819300,
"patches"["patch0000","patch0001","patch0002","patch0003"]}
*PUT /oc/servers/server_id * - receives synchronization messages
from OC Agent,
update the relevant
sever and returns a json array with
commads (restart, shutdown,graceful restart,
graceful
shutdown ) based on the availability .
- sample synchronization message
{"freeMemory":2031.464448,"idleCpuUsage":51.67310777925644,"systemCpuUsage":11.751442341969984,"userCpuUsage":36.57544357970618,"adminServiceUrl":"
https://10.100.4.113:9455/","serverUpTime":"0d 0h 1m 8s",
"threadCount":62,"systemLoadAverage":3.58,
"timestamp":1424252819302,"tenants":[]}
Suggestions and feedbacks are appreciated.
Thanks .
Chaya Sandamali
Software Engineering Intern
WSo2 Inc
Mobile: +94714905772
LinkedIn: http://lk.linkedin.com/pub/chaya-sandamali/90/694/a59/
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture