Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Removed JSON RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
IzabellaRaulin committed Nov 2, 2016
1 parent 908767e commit 280b3b6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 686 deletions.
12 changes: 0 additions & 12 deletions control/available_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,10 @@ func newAvailablePlugin(resp plugin.Response, emitter gomit.Emitter, ep executab
}
ap.key = fmt.Sprintf("%s"+core.Separator+"%s"+core.Separator+"%d", ap.pluginType.String(), ap.name, ap.version)

listenURL := fmt.Sprintf("http://%v/rpc", resp.ListenAddress)
// Create RPC Client
switch resp.Type {
case plugin.CollectorPluginType:
switch resp.Meta.RPCType {
case plugin.JSONRPC:
log.WithFields(log.Fields{
"_module": "control-aplugin",
"_block": "newAvailablePlugin",
"plugin_name": ap.name,
}).Warning("This plugin is using a deprecated JSON RPC protocol. Find more information here: https://github.com/intelsdi-x/snap/issues/1296 ")
c, e := client.NewCollectorHttpJSONRPCClient(listenURL, DefaultClientTimeout, resp.PublicKey, !resp.Meta.Unsecure)
if e != nil {
return nil, errors.New("error while creating client connection: " + e.Error())
}
ap.client = c
case plugin.NativeRPC:
log.WithFields(log.Fields{
"_module": "control-aplugin",
Expand Down
314 changes: 0 additions & 314 deletions control/plugin/client/httpjsonrpc_deprecated.go

This file was deleted.

Loading

0 comments on commit 280b3b6

Please sign in to comment.