startInVmRpcServer

fun <I : RPCOps> startInVmRpcServer(rpcUser: User = rpcTestUser, nodeLegalName: CordaX500Name = fakeNodeLegalName, maxFileSize: Int = MAX_MESSAGE_SIZE, maxBufferedBytesPerClient: Long = 10L * MAX_MESSAGE_SIZE, configuration: <Error class: unknown class> = RPCServerConfiguration.DEFAULT, ops: I, queueDrainTimeout: Duration = 5.seconds): CordaFuture<RpcServerHandle>

Starts an In-VM RPC server. Note that only a single one may be started.

Parameters

rpcUser

The single user who can access the server through RPC, and their permissions.

nodeLegalName

The legal name of the node to check against to authenticate a superuser.

configuration

The RPC server configuration.

ops

The server-side implementation of the RPC interface.