public class DriverParameters
Builder for configuring a Driver.driver
.
Driver.driver
Constructor and Description |
---|
DriverParameters(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes,
java.nio.file.Path djvmBootstrapSource,
java.util.List<? extends java.nio.file.Path> djvmCordaSource,
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean allowHibernateToManageAppSchema,
boolean premigrateH2Database)
Builder for configuring a
Driver.driver . |
DriverParameters()
Builder for configuring a
Driver.driver . |
DriverParameters(java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes) |
DriverParameters(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes) |
DriverParameters(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB) |
DriverParameters(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters) |
DriverParameters(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes,
java.nio.file.Path djvmBootstrapSource,
java.util.List<? extends java.nio.file.Path> djvmCordaSource,
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean allowHibernateToManageAppSchema) |
DriverParameters(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
boolean inMemoryDB) |
Modifier and Type | Method and Description |
---|---|
boolean |
component1()
Indicates whether the spawned nodes should start in jdwt debug mode and have debug level logging.
|
java.util.List<java.lang.String> |
component10()
A
|
JmxPolicy |
component11()
Used to specify whether to expose JMX metrics via Jolokia HHTP/JSON.
|
NetworkParameters |
component12()
The network parameters to be used by all the nodes.
|
java.util.Map<java.lang.String,java.lang.Object> |
component13()
Extra settings that need to be passed to the notary.
|
boolean |
component14()
Whether to use in-memory H2 for new nodes rather then on-disk
|
java.util.Collection<net.corda.testing.node.TestCordapp> |
component15()
|
java.nio.file.Path |
component16()
Location of a JAR containing the Java APIs for the DJVM to use.
|
java.util.List<java.nio.file.Path> |
component17()
Locations of JARs of user-supplied classes to execute within the DJVM sandbox.
|
java.util.Map<java.lang.String,java.lang.String> |
component18() |
boolean |
component19() |
java.nio.file.Path |
component2()
The base directory node directories go into,
|
boolean |
component20()
Whether to use a prebuilt H2 database schema or start from an empty schema.
|
PortAllocation |
component3()
The port allocation strategy to use for the messaging and the web server addresses.
|
PortAllocation |
component4()
The port allocation strategy to use for jvm debugging.
|
java.util.Map<java.lang.String,java.lang.String> |
component5()
A Map of extra system properties which will be given to each new node.
|
boolean |
component6()
If true the test clock will be used in Node.
|
boolean |
component7()
Provides the default behaviour of whether new nodes should start inside this process or
|
boolean |
component8()
If true,
|
java.util.List<net.corda.testing.node.NotarySpec> |
component9()
The notaries advertised for this network.
|
DriverParameters |
copy(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters) |
DriverParameters |
copy(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Set<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes) |
DriverParameters |
copy(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes) |
DriverParameters |
copy(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes,
java.nio.file.Path djvmBootstrapSource,
java.util.List<? extends java.nio.file.Path> djvmCordaSource,
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean allowHibernateToManageAppSchema) |
DriverParameters |
copy(boolean isDebug,
java.nio.file.Path driverDirectory,
PortAllocation portAllocation,
PortAllocation debugPortAllocation,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
boolean useTestClock,
boolean startNodesInProcess,
boolean waitForAllNodesToFinish,
java.util.List<net.corda.testing.node.NotarySpec> notarySpecs,
java.util.List<java.lang.String> extraCordappPackagesToScan,
JmxPolicy jmxPolicy,
NetworkParameters networkParameters,
java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides,
boolean inMemoryDB,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes,
java.nio.file.Path djvmBootstrapSource,
java.util.List<? extends java.nio.file.Path> djvmCordaSource,
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean allowHibernateToManageAppSchema,
boolean premigrateH2Database)
Builder for configuring a
Driver.driver . |
boolean |
equals(java.lang.Object p) |
boolean |
getAllowHibernateToManageAppSchema() |
java.util.Collection<net.corda.testing.node.TestCordapp> |
getCordappsForAllNodes()
|
PortAllocation |
getDebugPortAllocation()
The port allocation strategy to use for jvm debugging.
|
java.nio.file.Path |
getDjvmBootstrapSource()
Location of a JAR containing the Java APIs for the DJVM to use.
|
java.util.List<java.nio.file.Path> |
getDjvmCordaSource()
Locations of JARs of user-supplied classes to execute within the DJVM sandbox.
|
java.nio.file.Path |
getDriverDirectory()
The base directory node directories go into,
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironmentVariables() |
java.util.List<java.lang.String> |
getExtraCordappPackagesToScan()
Deprecated.
|
boolean |
getInMemoryDB()
Whether to use in-memory H2 for new nodes rather then on-disk
|
JmxPolicy |
getJmxPolicy()
Used to specify whether to expose JMX metrics via Jolokia HHTP/JSON.
|
NetworkParameters |
getNetworkParameters()
The network parameters to be used by all the nodes.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNotaryCustomOverrides()
Extra settings that need to be passed to the notary.
|
java.util.List<net.corda.testing.node.NotarySpec> |
getNotarySpecs()
The notaries advertised for this network.
|
PortAllocation |
getPortAllocation()
The port allocation strategy to use for the messaging and the web server addresses.
|
boolean |
getPremigrateH2Database()
Whether to use a prebuilt H2 database schema or start from an empty schema.
|
boolean |
getStartNodesInProcess()
Provides the default behaviour of whether new nodes should start inside this process or
|
java.util.Map<java.lang.String,java.lang.String> |
getSystemProperties()
A Map of extra system properties which will be given to each new node.
|
boolean |
getUseTestClock()
If true the test clock will be used in Node.
|
boolean |
getWaitForAllNodesToFinish()
If true,
|
int |
hashCode() |
boolean |
isDebug()
Indicates whether the spawned nodes should start in jdwt debug mode and have debug level logging.
|
java.lang.String |
toString() |
DriverParameters |
withAllowHibernateToManageAppSchema(boolean value) |
DriverParameters |
withCordappsForAllNodes(java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes) |
DriverParameters |
withDebugPortAllocation(PortAllocation debugPortAllocation) |
DriverParameters |
withDjvmBootstrapSource(java.nio.file.Path djvmBootstrapSource) |
DriverParameters |
withDjvmCordaSource(java.util.List<? extends java.nio.file.Path> djvmCordaSource) |
DriverParameters |
withDriverDirectory(java.nio.file.Path driverDirectory) |
DriverParameters |
withEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> variables) |
DriverParameters |
withExtraCordappPackagesToScan(java.util.List<java.lang.String> extraCordappPackagesToScan)
Deprecated.
|
DriverParameters |
withInMemoryDB(boolean inMemoryDB) |
DriverParameters |
withIsDebug(boolean isDebug) |
DriverParameters |
withJmxPolicy(JmxPolicy jmxPolicy) |
DriverParameters |
withNetworkParameters(NetworkParameters networkParameters) |
DriverParameters |
withNotaryCustomOverrides(java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides) |
DriverParameters |
withNotarySpecs(java.util.List<net.corda.testing.node.NotarySpec> notarySpecs) |
DriverParameters |
withPortAllocation(PortAllocation portAllocation) |
DriverParameters |
withStartNodesInProcess(boolean startNodesInProcess) |
DriverParameters |
withSystemProperties(java.util.Map<java.lang.String,java.lang.String> systemProperties) |
DriverParameters |
withUseTestClock(boolean useTestClock) |
DriverParameters |
withWaitForAllNodesToFinish(boolean waitForAllNodesToFinish) |
public DriverParameters(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB, java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes, java.nio.file.Path djvmBootstrapSource, java.util.List<? extends java.nio.file.Path> djvmCordaSource, java.util.Map<java.lang.String,java.lang.String> environmentVariables, boolean allowHibernateToManageAppSchema, boolean premigrateH2Database)
Builder for configuring a Driver.driver
.
isDebug
- Indicates whether the spawned nodes should start in jdwt debug mode and have debug level logging.driverDirectory
- The base directory node directories go into, defaults to "build//". The node directories themselves are "//", where legalName defaults to "-" and may be specified in DriverDSL.startNode
.portAllocation
- The port allocation strategy to use for the messaging and the web server addresses. Defaults to incremental.debugPortAllocation
- The port allocation strategy to use for jvm debugging. Defaults to incremental.systemProperties
- A Map of extra system properties which will be given to each new node. Defaults to empty.useTestClock
- If true the test clock will be used in Node.startNodesInProcess
- Provides the default behaviour of whether new nodes should start inside this process or not. Note that this may be overridden in DriverDSL.startNode
.waitForAllNodesToFinish
- If true, the nodes will not shut down automatically after executing the code in the driver DSL block. It will wait for them to be shut down externally instead.notarySpecs
- The notaries advertised for this network. These nodes will be started automatically and will be available from DriverDSL.getNotaryHandles
, and will be added automatically to the network parameters. Defaults to a simple validating notary.extraCordappPackagesToScan
- A List of additional cordapp packages to scan for any cordapp code, e.g. contract verification code, flows and services. The calling package is automatically included in this list. If this is not desirable then use cordappsForAllNodes instead.jmxPolicy
- Used to specify whether to expose JMX metrics via Jolokia HHTP/JSON.networkParameters
- The network parameters to be used by all the nodes. NetworkParameters.notaries must be empty as notaries are defined by notarySpecs.notaryCustomOverrides
- Extra settings that need to be passed to the notary.inMemoryDB
- Whether to use in-memory H2 for new nodes rather then on-disk (the node starts quicker, however the data is not persisted between node restarts). Has no effect if node is configured in any way to use database other than H2.cordappsForAllNodes
- class TestCordapp
s that will be added to each node started by the interface DriverDSL
.djvmBootstrapSource
- Location of a JAR containing the Java APIs for the DJVM to use.djvmCordaSource
- Locations of JARs of user-supplied classes to execute within the DJVM sandbox.premigrateH2Database
- Whether to use a prebuilt H2 database schema or start from an empty schema.This can save time for tests which do not need to migrate from a blank schema.Driver.driver
public DriverParameters()
Builder for configuring a Driver.driver
.
Driver.driver
public DriverParameters(java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes)
public DriverParameters(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB, java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes)
public DriverParameters(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB)
public DriverParameters(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters)
public DriverParameters(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB, java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes, java.nio.file.Path djvmBootstrapSource, java.util.List<? extends java.nio.file.Path> djvmCordaSource, java.util.Map<java.lang.String,java.lang.String> environmentVariables, boolean allowHibernateToManageAppSchema)
public DriverParameters(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, boolean inMemoryDB)
public DriverParameters withIsDebug(boolean isDebug)
public DriverParameters withDriverDirectory(java.nio.file.Path driverDirectory)
public DriverParameters withPortAllocation(PortAllocation portAllocation)
public DriverParameters withDebugPortAllocation(PortAllocation debugPortAllocation)
public DriverParameters withSystemProperties(java.util.Map<java.lang.String,java.lang.String> systemProperties)
public DriverParameters withUseTestClock(boolean useTestClock)
public DriverParameters withStartNodesInProcess(boolean startNodesInProcess)
public DriverParameters withWaitForAllNodesToFinish(boolean waitForAllNodesToFinish)
public DriverParameters withNotarySpecs(java.util.List<net.corda.testing.node.NotarySpec> notarySpecs)
public DriverParameters withExtraCordappPackagesToScan(java.util.List<java.lang.String> extraCordappPackagesToScan)
public DriverParameters withJmxPolicy(JmxPolicy jmxPolicy)
public DriverParameters withNetworkParameters(NetworkParameters networkParameters)
public DriverParameters withNotaryCustomOverrides(java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides)
public DriverParameters withInMemoryDB(boolean inMemoryDB)
public DriverParameters withCordappsForAllNodes(java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes)
public DriverParameters withDjvmBootstrapSource(java.nio.file.Path djvmBootstrapSource)
public DriverParameters withDjvmCordaSource(java.util.List<? extends java.nio.file.Path> djvmCordaSource)
public DriverParameters withEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> variables)
public DriverParameters withAllowHibernateToManageAppSchema(boolean value)
public DriverParameters copy(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters)
public DriverParameters copy(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Set<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes)
public DriverParameters copy(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB, java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes)
public DriverParameters copy(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB, java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes, java.nio.file.Path djvmBootstrapSource, java.util.List<? extends java.nio.file.Path> djvmCordaSource, java.util.Map<java.lang.String,java.lang.String> environmentVariables, boolean allowHibernateToManageAppSchema)
public boolean isDebug()
Indicates whether the spawned nodes should start in jdwt debug mode and have debug level logging.
public java.nio.file.Path getDriverDirectory()
The base directory node directories go into,
defaults to "build//". The node directories themselves are "//", where legalName defaults to "-" and may be specified in DriverDSL.startNode
.
DriverDSL.startNode
public PortAllocation getPortAllocation()
The port allocation strategy to use for the messaging and the web server addresses.
Defaults to incremental.
public PortAllocation getDebugPortAllocation()
The port allocation strategy to use for jvm debugging.
Defaults to incremental.
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
A Map of extra system properties which will be given to each new node.
Defaults to empty.
public boolean getUseTestClock()
If true the test clock will be used in Node.
public boolean getStartNodesInProcess()
Provides the default behaviour of whether new nodes should start inside this process or
not. Note that this may be overridden in DriverDSL.startNode
.
DriverDSL.startNode
public boolean getWaitForAllNodesToFinish()
If true,
the nodes will not shut down automatically after executing the code in the driver DSL block. It will wait for them to be shut down externally instead.
public java.util.List<net.corda.testing.node.NotarySpec> getNotarySpecs()
The notaries advertised for this network.
These nodes will be started automatically and will be available from DriverDSL.getNotaryHandles
, and will be added automatically to the network parameters. Defaults to a simple validating notary.
DriverDSL.getNotaryHandles
public java.util.List<java.lang.String> getExtraCordappPackagesToScan()
A
List of additional cordapp packages to scan for any cordapp code, e.g. contract verification code, flows and services. The calling package is automatically included in this list. If this is not desirable then use cordappsForAllNodes instead.
public JmxPolicy getJmxPolicy()
Used to specify whether to expose JMX metrics via Jolokia HHTP/JSON.
public NetworkParameters getNetworkParameters()
The network parameters to be used by all the nodes.
NetworkParameters.notaries must be empty as notaries are defined by notarySpecs.
public java.util.Map<java.lang.String,java.lang.Object> getNotaryCustomOverrides()
Extra settings that need to be passed to the notary.
public boolean getInMemoryDB()
Whether to use in-memory H2 for new nodes rather then on-disk
(the node starts quicker, however the data is not persisted between node restarts). Has no effect if node is configured in any way to use database other than H2.
public java.util.Collection<net.corda.testing.node.TestCordapp> getCordappsForAllNodes()
s that will be added to each node started by the interface DriverDSL
.
class TestCordapp
,
interface DriverDSL
public java.nio.file.Path getDjvmBootstrapSource()
Location of a JAR containing the Java APIs for the DJVM to use.
public java.util.List<java.nio.file.Path> getDjvmCordaSource()
Locations of JARs of user-supplied classes to execute within the DJVM sandbox.
public java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
public boolean getAllowHibernateToManageAppSchema()
public boolean getPremigrateH2Database()
Whether to use a prebuilt H2 database schema or start from an empty schema.
This can save time for tests which do not need to migrate from a blank schema.
public boolean component1()
Indicates whether the spawned nodes should start in jdwt debug mode and have debug level logging.
public java.nio.file.Path component2()
The base directory node directories go into,
defaults to "build//". The node directories themselves are "//", where legalName defaults to "-" and may be specified in DriverDSL.startNode
.
DriverDSL.startNode
public PortAllocation component3()
The port allocation strategy to use for the messaging and the web server addresses.
Defaults to incremental.
public PortAllocation component4()
The port allocation strategy to use for jvm debugging.
Defaults to incremental.
public java.util.Map<java.lang.String,java.lang.String> component5()
A Map of extra system properties which will be given to each new node.
Defaults to empty.
public boolean component6()
If true the test clock will be used in Node.
public boolean component7()
Provides the default behaviour of whether new nodes should start inside this process or
not. Note that this may be overridden in DriverDSL.startNode
.
DriverDSL.startNode
public boolean component8()
If true,
the nodes will not shut down automatically after executing the code in the driver DSL block. It will wait for them to be shut down externally instead.
public java.util.List<net.corda.testing.node.NotarySpec> component9()
The notaries advertised for this network.
These nodes will be started automatically and will be available from DriverDSL.getNotaryHandles
, and will be added automatically to the network parameters. Defaults to a simple validating notary.
DriverDSL.getNotaryHandles
public java.util.List<java.lang.String> component10()
A
List of additional cordapp packages to scan for any cordapp code, e.g. contract verification code, flows and services. The calling package is automatically included in this list. If this is not desirable then use cordappsForAllNodes instead.
public JmxPolicy component11()
Used to specify whether to expose JMX metrics via Jolokia HHTP/JSON.
public NetworkParameters component12()
The network parameters to be used by all the nodes.
NetworkParameters.notaries must be empty as notaries are defined by notarySpecs.
public java.util.Map<java.lang.String,java.lang.Object> component13()
Extra settings that need to be passed to the notary.
public boolean component14()
Whether to use in-memory H2 for new nodes rather then on-disk
(the node starts quicker, however the data is not persisted between node restarts). Has no effect if node is configured in any way to use database other than H2.
public java.util.Collection<net.corda.testing.node.TestCordapp> component15()
s that will be added to each node started by the interface DriverDSL
.
class TestCordapp
,
interface DriverDSL
public java.nio.file.Path component16()
Location of a JAR containing the Java APIs for the DJVM to use.
public java.util.List<java.nio.file.Path> component17()
Locations of JARs of user-supplied classes to execute within the DJVM sandbox.
public java.util.Map<java.lang.String,java.lang.String> component18()
public boolean component19()
public boolean component20()
Whether to use a prebuilt H2 database schema or start from an empty schema.
This can save time for tests which do not need to migrate from a blank schema.
public DriverParameters copy(boolean isDebug, java.nio.file.Path driverDirectory, PortAllocation portAllocation, PortAllocation debugPortAllocation, java.util.Map<java.lang.String,java.lang.String> systemProperties, boolean useTestClock, boolean startNodesInProcess, boolean waitForAllNodesToFinish, java.util.List<net.corda.testing.node.NotarySpec> notarySpecs, java.util.List<java.lang.String> extraCordappPackagesToScan, JmxPolicy jmxPolicy, NetworkParameters networkParameters, java.util.Map<java.lang.String,? extends java.lang.Object> notaryCustomOverrides, boolean inMemoryDB, java.util.Collection<? extends net.corda.testing.node.TestCordapp> cordappsForAllNodes, java.nio.file.Path djvmBootstrapSource, java.util.List<? extends java.nio.file.Path> djvmCordaSource, java.util.Map<java.lang.String,java.lang.String> environmentVariables, boolean allowHibernateToManageAppSchema, boolean premigrateH2Database)
Builder for configuring a Driver.driver
.
Driver.driver
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)