corda / net.corda.testing.driver / NodeParameters

NodeParameters

data class NodeParameters

Helper builder for configuring a Node from Java.

Constructors

<init>

NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String)NodeParameters(providedName: CordaX500Name? = null, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, customOverrides: Map<String, Any?> = emptyMap(), startInSameProcess: Boolean? = null, maximumHeapSize: String = "512m", logLevel: String? = null)

Helper builder for configuring a Node from Java.

Properties

customOverrides

val customOverrides: Map<String, Any?>

A map of custom node configuration overrides.

logLevel

val logLevel: String?

maximumHeapSize

val maximumHeapSize: String

The maximum JVM heap size to use for the node.

providedName

val providedName: CordaX500Name?

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!

rpcUsers

val rpcUsers: List<User>

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

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: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String): NodeParameters

withCustomOverrides

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

withLogLevel

fun withLogLevel(logLevel: String?): NodeParameters

withMaximumHeapSize

fun withMaximumHeapSize(maximumHeapSize: String): NodeParameters

withProvidedName

fun withProvidedName(providedName: CordaX500Name?): NodeParameters

withRpcUsers

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

withStartInSameProcess

fun withStartInSameProcess(startInSameProcess: Boolean?): NodeParameters

withVerifierType

fun withVerifierType(verifierType: VerifierType): NodeParameters

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.