public class Driver
Modifier and Type | Method and Description |
---|---|
static <A> A |
driver(DriverParameters defaultParameters,
Function1<? super net.corda.testing.driver.DriverDSL,? extends A> dsl)
Driver.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) |
static java.io.File |
logFile(NodeHandle $receiver) |
public static java.io.File logFile(NodeHandle $receiver)
public static <A> A driver(DriverParameters defaultParameters, Function1<? super net.corda.testing.driver.DriverDSL,? extends A> dsl)
Driver.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 style
when called from Java code.dsl
- The dsl itself.Driver.driver
,
DriverDSL.startNode
,
interface CordaFuture
,
class NodeInfo