NodeParameters

data class NodeParameters(val providedName: CordaX500Name? = null, val rpcUsers: List<User> = emptyList(), val verifierType: VerifierType = VerifierType.InMemory, val customOverrides: Map<String, Any?> = emptyMap(), val startInSameProcess: Boolean? = null, val maximumHeapSize: String = System.getenv("DRIVER_NODE_MEMORY") ?: "512m", val additionalCordapps: Collection<TestCordapp> = emptySet(), val flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>> = emptyMap(), val logLevelOverride: String? = null, val rpcAddress: NetworkHostAndPort? = null, val systemProperties: Map<String, String> = emptyMap(), val legacyContracts: Collection<TestCordapp> = emptySet())

Parameters for creating a node for DriverDSL.startNode.

Constructors

Link copied to clipboard
constructor()

Create a new node parameters object with default values. Each parameter can be specified with its wither method which returns a copy with that value.

constructor(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String)
constructor(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>)
constructor(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null)
constructor(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null)
constructor(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null, systemProperties: Map<String, String> = emptyMap())
constructor(providedName: CordaX500Name? = null, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, customOverrides: Map<String, Any?> = emptyMap(), startInSameProcess: Boolean? = null, maximumHeapSize: String = System.getenv("DRIVER_NODE_MEMORY") ?: "512m", additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>> = emptyMap(), logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null, systemProperties: Map<String, String> = emptyMap(), legacyContracts: Collection<TestCordapp> = emptySet())

Properties

Link copied to clipboard

Additional TestCordapps that this node will have available, in addition to the ones common to all nodes managed by the DriverDSL.

Link copied to clipboard

A map of custom node configuration overrides.

Link copied to clipboard
val flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>
Link copied to clipboard
Link copied to clipboard

log level to be passed as parameter to an out of process node. ERROR, WARN, INFO, DEBUG, TRACE. This overrides debug port log level argument.

Link copied to clipboard

The maximum JVM heap size to use for the node. Defaults to 512 MB.

Link copied to clipboard

Optional name of the node, which will be its legal name in Party. Defaults to something random. Note that this must be unique as the driver uses it as a primary key!

Link copied to clipboard

optional override for RPC address on which node will be accepting RPC connections from the clients. Port provided must be vacant.

Link copied to clipboard

List of users who are authorised to use the RPC system. Defaults to a single user with all permissions.

Link copied to clipboard

Determines if the node should be started inside the same process the Driver is running in. If null the Driver-level value will be used.

Link copied to clipboard
Link copied to clipboard

The type of transaction verifier to use. See: VerifierType

Functions

Link copied to clipboard
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null, systemProperties: Map<String, String> = emptyMap()): NodeParameters
Link copied to clipboard
Link copied to clipboard
fun withCustomOverrides(customOverrides: Map<String, Any?>): NodeParameters
Link copied to clipboard
fun withFlowOverrides(flowOverrides: Map<Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>): NodeParameters
Link copied to clipboard
Link copied to clipboard
fun withLogLevelOverride(logLevelOverride: String?): NodeParameters
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun withStartInSameProcess(startInSameProcess: Boolean?): NodeParameters
Link copied to clipboard
Link copied to clipboard