mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
ENT-9476: Added in missing Kotlin API.
This commit is contained in:
parent
e216b7715e
commit
ec67e77c76
@ -489,7 +489,7 @@ data class DriverParameters(
|
||||
djvmCordaSource: List<Path>,
|
||||
environmentVariables: Map<String, String>,
|
||||
allowHibernateToManageAppSchema: Boolean,
|
||||
premigrateH2Database: Boolean
|
||||
premigrateH2Database: Boolean = true
|
||||
) : this(
|
||||
isDebug,
|
||||
driverDirectory,
|
||||
@ -682,4 +682,50 @@ data class DriverParameters(
|
||||
allowHibernateToManageAppSchema = allowHibernateToManageAppSchema,
|
||||
premigrateH2Database = true
|
||||
)
|
||||
|
||||
@Suppress("LongParameterList")
|
||||
fun copy(
|
||||
isDebug: Boolean,
|
||||
driverDirectory: Path,
|
||||
portAllocation: PortAllocation,
|
||||
debugPortAllocation: PortAllocation,
|
||||
systemProperties: Map<String, String>,
|
||||
useTestClock: Boolean,
|
||||
startNodesInProcess: Boolean,
|
||||
waitForAllNodesToFinish: Boolean,
|
||||
notarySpecs: List<NotarySpec>,
|
||||
extraCordappPackagesToScan: List<String>,
|
||||
jmxPolicy: JmxPolicy,
|
||||
networkParameters: NetworkParameters,
|
||||
notaryCustomOverrides: Map<String, Any?>,
|
||||
inMemoryDB: Boolean,
|
||||
cordappsForAllNodes: Collection<TestCordapp>?,
|
||||
djvmBootstrapSource: Path?,
|
||||
djvmCordaSource: List<Path>,
|
||||
environmentVariables: Map<String, String>,
|
||||
allowHibernateToManageAppSchema: Boolean,
|
||||
premigrateH2Database: Boolean
|
||||
) = this.copy(
|
||||
isDebug = isDebug,
|
||||
driverDirectory = driverDirectory,
|
||||
portAllocation = portAllocation,
|
||||
debugPortAllocation = debugPortAllocation,
|
||||
systemProperties = systemProperties,
|
||||
useTestClock = useTestClock,
|
||||
startNodesInProcess = startNodesInProcess,
|
||||
waitForAllNodesToFinish = waitForAllNodesToFinish,
|
||||
notarySpecs = notarySpecs,
|
||||
extraCordappPackagesToScan = extraCordappPackagesToScan,
|
||||
jmxPolicy = jmxPolicy,
|
||||
networkParameters = networkParameters,
|
||||
notaryCustomOverrides = notaryCustomOverrides,
|
||||
inMemoryDB = inMemoryDB,
|
||||
cordappsForAllNodes = cordappsForAllNodes,
|
||||
djvmBootstrapSource = djvmBootstrapSource,
|
||||
djvmCordaSource = djvmCordaSource,
|
||||
environmentVariables = environmentVariables,
|
||||
allowHibernateToManageAppSchema = allowHibernateToManageAppSchema,
|
||||
premigrateH2Database = premigrateH2Database,
|
||||
notaryHandleTimeout = Duration.ofMinutes(1)
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue
Block a user