corda / net.corda.node.driver / DriverDSLExposedInterface

DriverDSLExposedInterface

interface DriverDSLExposedInterface

This is the interface that's exposed to DSL users.

Functions

startNode abstract fun startNode(providedName: String? = null, advertisedServices: Set<ServiceInfo> = emptySet(), rpcUsers: List<User> = emptyList(), customOverrides: Map<String, Any?> = emptyMap()): ListenableFuture<NodeHandle>

Starts a Node in a separate process.

startNotaryCluster abstract fun startNotaryCluster(notaryName: String, clusterSize: Int = 3, type: ServiceType = RaftValidatingNotaryService.type, rpcUsers: List<User> = emptyList()): Future<Pair<Party, List<NodeHandle>>>

Starts a distributed notary cluster.

startWebserver abstract fun startWebserver(handle: NodeHandle): ListenableFuture<HostAndPort>

Starts a web server for a node

waitForAllNodesToFinish abstract fun waitForAllNodesToFinish(): Unit

Extension Functions

runTest fun DriverDSLExposedInterface.runTest(): RunTestToken

Inheritors

DriverDSLInternalInterface interface DriverDSLInternalInterface : DriverDSLExposedInterface