Class RpcServerManager

java.lang.Object
org.knime.core.webui.data.rpc.RpcServerManager

@Deprecated(forRemoval=true) public final class RpcServerManager extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
rpc services are directly provided by a node view, dialog or port. Only needed for the legacy remote workflow editor.
Manages and forwards rpc-requests to respective rpc servers provided, e.g., by/for nodes or ports.
Since:
4.3
Author:
Martin Horn, KNIME GmbH, Konstanz, Germany
  • Method Summary

    Modifier and Type
    Method
    Description
    doRpc(org.knime.core.node.workflow.NativeNodeContainer nnc, String remoteProcedureCall)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Carries out a remote procedure call by calling the rpc server provided by a node.
    static String
    doRpc(RpcServer rpcServer, String remoteProcedureCall)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Carries out a remote procedure call using the provided rpc server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the singleton instance for this service.
    Map<org.knime.core.node.workflow.NodeContainer,RpcServer>
    Deprecated, for removal: This API element is subject to removal in a future version.
    For testing purposes only!

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static RpcServerManager getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the singleton instance for this service.
      Returns:
      the singleton instance
    • doRpc

      public String doRpc(org.knime.core.node.workflow.NativeNodeContainer nnc, String remoteProcedureCall) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Carries out a remote procedure call by calling the rpc server provided by a node. It assumes that the NodeModel associated with the node container implements NodeRpcServerFactory.
      Parameters:
      nnc - the node which is addressed by the rpc
      remoteProcedureCall - the actual remote procedure call encoded in some textual format
      Returns:
      the rpc response
      Throws:
      IllegalStateException - if the referenced node doesn't provide a rpc server
      IOException - if the rpc server can't process the rpc request properly
    • doRpc

      public static String doRpc(RpcServer rpcServer, String remoteProcedureCall) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Carries out a remote procedure call using the provided rpc server.
      Parameters:
      rpcServer - the rpc server to use for the rpc-call
      remoteProcedureCall - the actual remote procedure call encoded in some textual format
      Returns:
      the rpc response
      Throws:
      IOException - if the rpc server can't process the rpc request properly
    • getNodeRpcServerCache

      public Map<org.knime.core.node.workflow.NodeContainer,RpcServer> getNodeRpcServerCache()
      Deprecated, for removal: This API element is subject to removal in a future version.
      For testing purposes only!
      Returns:
      the node rpc server cache