public class Driver
@NotNull public static java.io.File logFile(@NotNull NodeHandle $this$logFile)
public static <A> A driver(@NotNull DriverParameters defaultParameters, @NotNull kotlin.jvm.functions.Function1<? super net.corda.testing.driver.DriverDSL,? extends A> dsl)
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 interface CordaFuture
of the class 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 stylewhen called from Java code.dsl
- The dsl itself.dsl
closure.driver
,
DriverDSL.startNode
,
interface CordaFuture
,
class NodeInfo