fun <A> driver(defaultParameters: DriverParameters = DriverParameters(), dsl: DriverDSL.() -> A): A
driver allows one to start up nodes like this: driver { val noService = startNode(providedName = DUMMY_BANK_A.name) val notary = startNode(providedName = DUMMY_NOTARY.name)
(...)
}
Note that DriverDSL.startNode does not wait for the node to start up synchronously, but rather returns a CordaFuture of the NodeInfo that may be waited on, which completes when the new node registered with the network map service or loaded node data from database.
defaultParameters
- The default parameters for the driver. Allows the driver to be configured in builder style
when called from Java code.
Return
The value returned in the dsl closure.