[
https://issues.apache.org/jira/browse/IGNITE-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642571#comment-14642571
]
Sergey Evdokimov commented on IGNITE-1121:
------------------------------------------
Done.
Agent gets login, password, control-center-server URL and Ignite node URL.
Control-center-server URL is a pointer to Web-Socket server started by
control-center like wss://control-center.gridgain.com. Ignite node URL is a
REST server started by node.
Agent connects to control-center URL, pass login and password and wait commands
from server.
On server side there is AgentManager class in agents/agent-manager.js .
AgentManager.findClient(userId) allow to obtain Client class that provide API
to work with connected agent.
Client.ignite() - returns Ignite class that provide API to work with Ignite.
Agent uses 'org.eclipse.jetty.websocket:websocket-client' library to connect to
web-socket server and 'org.apache.httpcomponents:httpclient' to execute REST
requests.
> Implementation of control-center-agent as proxy between web-server and Ignite
> cluster
> -------------------------------------------------------------------------------------
>
> Key: IGNITE-1121
> URL: https://issues.apache.org/jira/browse/IGNITE-1121
> Project: Ignite
> Issue Type: Sub-task
> Reporter: Sergey Evdokimov
> Assignee: Sergey Evdokimov
>
> We need to implement web-agent that will work like a proxy between web-server
> and Ignite cluster to:
> 1) collect metrics for grid monitoring
> 2) execute sql queries
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)