Package org.knime.core.webui.data.rpc
Interface RpcTransport
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
To deliver remote procedure calls to a remote (different machine and/or language) rpc server provided by a node
factory, different mechanisms can be used. This interface abstracts from the mechanism used, to deliver the remote
procedure call and to receive the response.
- Since:
- 4.3
- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany, Carl Witt, KNIME AG, Zurich, Switzerland
- See Also:
-
Method Summary
-
Method Details
-
sendAndReceive
- Parameters:
rpc- a remote procedure call, e.g., in JSON-RPC format, e.g., {"jsonrpc": "2.0", "method": "someMethod", "params": [1, "text"]}- Returns:
- the serialized return of the remotely invoked method, e.g., containing a JSON-RPC formatted result, like {"jsonrpc": "2.0", "result": ...}
-