corda / net.corda.testing.driver / NodeParameters

NodeParameters

data class NodeParameters

Parameters for creating a node for DriverDSL.startNode.

Constructors

<init>

NodeParameters()

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.

NodeParameters(providedName: <ERROR CLASS>?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String)
NodeParameters(providedName: <ERROR CLASS>?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out <ERROR CLASS><out <ERROR CLASS>>>, Class<out <ERROR CLASS><out <ERROR CLASS>>>>)NodeParameters(providedName: <ERROR CLASS>? = 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 <ERROR CLASS><out <ERROR CLASS>>>, Class<out <ERROR CLASS><out <ERROR CLASS>>>> = emptyMap(), logLevelOverride: String? = null, rpcAddress: <ERROR CLASS>? = null, runMigration: Boolean = true)

Parameters for creating a node for DriverDSL.startNode.

Properties

additionalCordapps

val additionalCordapps: Collection<TestCordapp>

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

customOverrides

val customOverrides: Map<String, Any?>

A map of custom node configuration overrides.

flowOverrides

val flowOverrides: Map<out Class<out <ERROR CLASS><out <ERROR CLASS>>>, Class<out <ERROR CLASS><out <ERROR CLASS>>>>

logLevelOverride

val logLevelOverride: String?

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.

maximumHeapSize

val maximumHeapSize: String

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

providedName

val providedName: <ERROR CLASS>?

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!

rpcAddress

val rpcAddress: <ERROR CLASS>?

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

rpcUsers

val rpcUsers: List<User>

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

runMigration

val runMigration: Boolean

startInSameProcess

val startInSameProcess: Boolean?

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.

verifierType

val verifierType: VerifierType

The type of transaction verifier to use. See: VerifierType

Functions

copy

fun copy(providedName: <ERROR CLASS>?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String): NodeParameters
fun copy(providedName: <ERROR CLASS>?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out <ERROR CLASS><out <ERROR CLASS>>>, Class<out <ERROR CLASS><out <ERROR CLASS>>>>): NodeParameters

withAdditionalCordapps

fun withAdditionalCordapps(additionalCordapps: Set<TestCordapp>): NodeParameters

withCustomOverrides

fun withCustomOverrides(customOverrides: Map<String, Any?>): NodeParameters

withFlowOverrides

fun withFlowOverrides(flowOverrides: Map<Class<out <ERROR CLASS><out <ERROR CLASS>>>, Class<out <ERROR CLASS><out <ERROR CLASS>>>>): NodeParameters

withLogLevelOverride

fun withLogLevelOverride(logLevelOverride: String?): NodeParameters

withMaximumHeapSize

fun withMaximumHeapSize(maximumHeapSize: String): NodeParameters

withProvidedName

fun withProvidedName(providedName: <ERROR CLASS>?): NodeParameters

withRpcUsers

fun withRpcUsers(rpcUsers: List<User>): NodeParameters

withStartInSameProcess

fun withStartInSameProcess(startInSameProcess: Boolean?): NodeParameters

withVerifierType

fun withVerifierType(verifierType: VerifierType): NodeParameters