startRpcServer

fun <I : RPCOps> startRpcServer(serverName: String = "driver-rpc-server-", rpcUser: User = rpcTestUser, nodeLegalName: CordaX500Name = fakeNodeLegalName, maxFileSize: Int = MAX_MESSAGE_SIZE, maxBufferedBytesPerClient: Long = 5L * MAX_MESSAGE_SIZE, configuration: <Error class: unknown class> = RPCServerConfiguration.DEFAULT, customPort: NetworkHostAndPort? = null, ops: I): CordaFuture<RpcServerHandle>


fun <I : RPCOps> startRpcServer(serverName: String = "driver-rpc-server-", rpcUser: User = rpcTestUser, nodeLegalName: CordaX500Name = fakeNodeLegalName, maxFileSize: Int = MAX_MESSAGE_SIZE, maxBufferedBytesPerClient: Long = 5L * MAX_MESSAGE_SIZE, configuration: <Error class: unknown class> = RPCServerConfiguration.DEFAULT, customPort: NetworkHostAndPort? = null, listOps: List<I>): CordaFuture<RpcServerHandle>

Starts a Netty RPC server.

Parameters

serverName

The name of the server, to be used for the folder created for Artemis files.

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.

listOps

The server-side implementation of the RPC interfaces.