data class MockNodeParameters
Immutable builder for configuring a StartedMockNode or an UnstartedMockNode via MockNetwork.createNode and MockNetwork.createUnstartedNode. Kotlin users can also use the named parameters overloads of those methods which are more convenient.
MockNodeParameters(forcedID: Int? = null, legalName: <ERROR CLASS>? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides) MockNodeParameters(forcedID: Int? = null, legalName: <ERROR CLASS>? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null, additionalCordapps: Collection<TestCordapp> = emptyList())
Immutable builder for configuring a StartedMockNode or an UnstartedMockNode via MockNetwork.createNode and MockNetwork.createUnstartedNode. Kotlin users can also use the named parameters overloads of those methods which are more convenient. |
val additionalCordapps: Collection<TestCordapp>
TestCordapps that will be added to this node in addition to the ones shared by all nodes, which get specified at MockNetwork level. |
|
val configOverrides: MockNodeConfigOverrides?
Add/override behaviour of the NodeConfiguration mock object. |
|
val entropyRoot: BigInteger
the initial entropy value to use when generating keys. Defaults to an (insecure) random value, but can be overridden to cause nodes to have stable or colliding identity/service keys. |
|
val forcedID: Int?
Override the ID to use for the node. By default node ID's are generated sequentially in a MockNetwork. Specifying the same ID is required if a node is restarted. |
|
val legalName: <ERROR CLASS>?
The CordaX500Name name to use for the node. |
fun copy(forcedID: Int?, legalName: <ERROR CLASS>?, entropyRoot: BigInteger, configOverrides: MockNodeConfigOverrides): MockNodeParameters |
|
fun withAdditionalCordapps(additionalCordapps: Collection<TestCordapp>): MockNodeParameters |
|
fun withConfigOverrides(configOverrides: MockNodeConfigOverrides): MockNodeParameters |
|
fun withEntropyRoot(entropyRoot: BigInteger): MockNodeParameters |
|
fun withForcedID(forcedID: Int?): MockNodeParameters |
|
fun withLegalName(legalName: <ERROR CLASS>?): MockNodeParameters |