DriverDSL

interface DriverDSL

Underlying interface for the driver DSL. Do not instantiate directly, instead use the driver function.

Inheritors

Properties

Link copied to clipboard

Returns the NotaryHandle for the single notary on the network. Throws if there are none or more than one.

Link copied to clipboard
open val defaultNotaryIdentity: <Error class: unknown class>

Returns the identity of the single notary on the network. Throws if there are none or more than one.

Link copied to clipboard
open val defaultNotaryNode: <Error class: unknown class><NodeHandle>

Returns a CordaFuture on the NodeHandle for the single-node notary on the network. Throws if there are no notaries or more than one, or if the notary is a distributed cluster.

Link copied to clipboard

Returns a list of NotaryHandles matching the list of NotarySpecs passed into driver.

Functions

Link copied to clipboard
fun DriverDSL.assertUncompletedCheckpoints(name: <Error class: unknown class>, expected: Long)
Link copied to clipboard
abstract fun baseDirectory(nodeName: <Error class: unknown class>): Path

Returns the base directory for a node with the given CordaX500Name. This method is useful if the base directory is needed before the node is started.

Link copied to clipboard
open fun nextPort(): Int

Returns the next port to use when instantiating test processes that must not conflict on the same machine

Link copied to clipboard
open fun startNode(): <Error class: unknown class><NodeHandle>

Start a node using the default values of NodeParameters.

abstract fun startNode(parameters: NodeParameters): <Error class: unknown class><NodeHandle>

Start a node using the parameter values of the given NodeParameters.

open fun startNode(defaultParameters: NodeParameters = NodeParameters(), providedName: <Error class: unknown class>? = defaultParameters.providedName, rpcUsers: List<User> = defaultParameters.rpcUsers, verifierType: VerifierType = defaultParameters.verifierType, customOverrides: Map<String, Any?> = defaultParameters.customOverrides, startInSameProcess: Boolean? = defaultParameters.startInSameProcess, maximumHeapSize: String = defaultParameters.maximumHeapSize): <Error class: unknown class><NodeHandle>
open fun startNode(defaultParameters: NodeParameters = NodeParameters(), providedName: <Error class: unknown class>? = defaultParameters.providedName, rpcUsers: List<User> = defaultParameters.rpcUsers, verifierType: VerifierType = defaultParameters.verifierType, customOverrides: Map<String, Any?> = defaultParameters.customOverrides, startInSameProcess: Boolean? = defaultParameters.startInSameProcess, maximumHeapSize: String = defaultParameters.maximumHeapSize, logLevelOverride: String? = defaultParameters.logLevelOverride): <Error class: unknown class><NodeHandle>

Start a node.

Link copied to clipboard
fun DriverDSL.startNode(providedName: <Error class: unknown class>, devMode: Boolean, parameters: NodeParameters = NodeParameters()): <Error class: unknown class><NodeHandle>
Link copied to clipboard
open fun startWebserver(handle: NodeHandle): <Error class: unknown class><WebserverHandle>

Call startWebserver with a default maximumHeapSize.

abstract fun startWebserver(handle: NodeHandle, maximumHeapSize: String): <Error class: unknown class><WebserverHandle>

Starts a web server for a node

Link copied to clipboard
fun <T> DriverDSL.withDatabaseConnection(name: <Error class: unknown class>, block: (Connection) -> T): T