Examples of RpcPlugin


Examples of net.opentsdb.tsd.RpcPlugin

    }
   
    if (init_rpcs && config.hasProperty("tsd.rpc.plugins")) {
      final String[] plugins = config.getString("tsd.rpc.plugins").split(",");
      for (final String plugin : plugins) {
        final RpcPlugin rpc = PluginLoader.loadSpecificPlugin(plugin.trim(),
            RpcPlugin.class);
        if (rpc == null) {
          throw new IllegalArgumentException(
              "Unable to locate RPC plugin: " + plugin.trim());
        }
        try {
          rpc.initialize(this);
        } catch (Exception e) {
          throw new RuntimeException(
              "Failed to initialize RPC plugin", e);
        }
       
        if (rpc_plugins == null) {
          rpc_plugins = new ArrayList<RpcPlugin>(1);
        }
        rpc_plugins.add(rpc);
        LOG.info("Successfully initialized RPC plugin [" +
            rpc.getClass().getCanonicalName() + "] version: "
            + rpc.version());
      }
    }
  }
View Full Code Here

Examples of org.jwebsocket.plugins.rpc.RPCPlugIn

    }
    Map<String, List<WebSocketPlugIn>> pluginMap = new FastMap<String, List<WebSocketPlugIn>>();
    List<WebSocketPlugIn> defaultPlugins = new FastList<WebSocketPlugIn>();

    defaultPlugins.add(new SystemPlugIn());
    defaultPlugins.add(new RPCPlugIn());
    defaultPlugins.add(new StreamingPlugIn());
    defaultPlugins.add(new FlashBridgePlugIn());

    pluginMap.put("ts0", defaultPlugins);
    if (log.isInfoEnabled()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.