com.github.manosbatsis.corda.testacles.nodedriver / NodeDriverHelper
NodeDriverHelper¶
open class NodeDriverHelper
Uses Corda’s node driver to either:
- Explicitly start/shutdown a Corda network
- Run some code within the context of an implicit ad hoc Corda network via withDriverNodes
This helper class is not threadsafe as concurrent networks would result in port conflicts.
Constructors¶
Name | Summary |
---|---|
<init> | NodeDriverHelper(nodeDriverNodesConfig: NodeDriverNodesConfig )``NodeDriverHelper(nodeDriverConfig: NodeDriverConfig ) Uses Corda’s node driver to either: |
Properties¶
Name | Summary |
---|---|
nodeHandles | val nodeHandles: NodeHandles |
Functions¶
Name | Summary |
---|---|
start | fun start(): Unit Start the node driver network |
stop | fun stop(): Unit Stop the node driver network |
withDriverNodes | fun withDriverNodes(action: () -> Unit ): Unit Launch a network, execute the action code, and shut the network down |
Companion Object Properties¶
Name | Summary |
---|---|
RESOURCE_LOCK | const val RESOURCE_LOCK: String |
Companion Object Functions¶
Name | Summary |
---|---|
createDriver | fun createDriver(driverParameters: DriverParameters): DriverDSLImpl fun <T : Any > createDriver(targetClass: KClass < T >, parameters: Map < String , Any ?>, targetConstructor: KFunction < T > = targetClass.primaryConstructor!!): T Create a node driver using reflection to work around differences between Corda 4.0 and 4.6 and OS/CE APIs. |