Interface RpcServer

All Known Subinterfaces:
RpcSingleServer<S>
All Known Implementing Classes:
JsonRpcServer, JsonRpcSingleServer

public interface RpcServer
An RpcServer implementation is used to serve remote requests to one or more node data services.
Since:
4.3
Author:
Martin Horn, KNIME GmbH, Konstanz, Germany, Carl Witt, KNIME AG, Zurich, Switzerland
  • Method Details

    • getHandler

      default <S> S getHandler(Class<S> serviceInterface)
      Returns the service implementation associated to the name serviceInterface.getSimpleName()
      Type Parameters:
      S - the node data service interface (i.e., the methods offered by the node model to the node dialog/view to retrieve data)
      Parameters:
      serviceInterface - an interface the handler implements
      Returns:
      an implementation of the service interface
    • getHandler

      <S> S getHandler(String serviceName)
      Type Parameters:
      S - the node data service interface (i.e., the methods offered by the node model to the node dialog/view to retrieve data)
      Parameters:
      serviceName - the name of the interface that identifies the implementation of the node data service interface to return
      Returns:
      a service implementation
    • handleRequest

      void handleRequest(InputStream in, OutputStream out) throws IOException
      Handles a single request.
      Parameters:
      in - contains the request
      out - receives the response
      Throws:
      IOException