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():UnitStart the node driver network |
| stop | fun stop():UnitStop the node driver network |
| withDriverNodes | fun withDriverNodes(action: () ->Unit):UnitLaunch 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): DriverDSLImplfun <T :Any> createDriver(targetClass:KClass<T>, parameters:Map<String,Any?>, targetConstructor:KFunction<T> = targetClass.primaryConstructor!!):TCreate a node driver using reflection to work around differences between Corda 4.0 and 4.6 and OS/CE APIs. |