Package org.knime.core.webui.data.rpc
Class RpcServerManager
java.lang.Object
org.knime.core.webui.data.rpc.RpcServerManager
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 TypeMethodDescriptionDeprecated, 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 StringDeprecated, for removal: This API element is subject to removal in a future version.Carries out a remote procedure call using the provided rpc server.static RpcServerManagerDeprecated, for removal: This API element is subject to removal in a future version.Returns the singleton instance for this service.Deprecated, for removal: This API element is subject to removal in a future version.For testing purposes only!
-
Method Details
-
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 theNodeModelassociated with the node container implementsNodeRpcServerFactory.- Parameters:
nnc- the node which is addressed by the rpcremoteProcedureCall- 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 serverIOException- if the rpc server can't process the rpc request properly
-
doRpc
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-callremoteProcedureCall- 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
Deprecated, for removal: This API element is subject to removal in a future version.For testing purposes only!- Returns:
- the node rpc server cache
-