public class MockNodeParameters
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.
public MockNodeParameters(@Nullable java.lang.Integer forcedID, @Nullable CordaX500Name legalName, @NotNull java.math.BigInteger entropyRoot, @Nullable MockNodeConfigOverrides configOverrides, @NotNull java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps)
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.
forcedID
- Override the ID to use for the node. By default node ID's are generated sequentially in aclass MockNetwork
. Specifying the same ID is required if a node is restarted.legalName
- The class CordaX500Name
name to use for the node.entropyRoot
- 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.configOverrides
- Add/override behaviour of the NodeConfiguration mock object.additionalCordapps
- class TestCordapp
s that will be added to this node in addition to the ones shared by all nodes, which get specified at class MockNetwork
level.class StartedMockNode
,
class UnstartedMockNode
,
MockNetwork.createNode
,
MockNetwork.createUnstartedNode
public MockNodeParameters()
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.
public MockNodeParameters(@Nullable java.lang.Integer forcedID, @Nullable CordaX500Name legalName, @NotNull java.math.BigInteger entropyRoot, @NotNull MockNodeConfigOverrides configOverrides)
@NotNull public MockNodeParameters withForcedID(@Nullable java.lang.Integer forcedID)
@NotNull public MockNodeParameters withLegalName(@Nullable CordaX500Name legalName)
@NotNull public MockNodeParameters withEntropyRoot(@NotNull java.math.BigInteger entropyRoot)
@NotNull public MockNodeParameters withConfigOverrides(@NotNull MockNodeConfigOverrides configOverrides)
@NotNull public MockNodeParameters withAdditionalCordapps(@NotNull java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps)
@NotNull public MockNodeParameters copy(@Nullable java.lang.Integer forcedID, @Nullable CordaX500Name legalName, @NotNull java.math.BigInteger entropyRoot, @NotNull MockNodeConfigOverrides configOverrides)
@Nullable public java.lang.Integer getForcedID()
Override the ID to use for the node.
By default node ID's are generated sequentially in aclass MockNetwork
. Specifying the same ID is required if a node is restarted.
class MockNetwork
@Nullable public CordaX500Name getLegalName()
The
class CordaX500Name
name to use for the node.
class CordaX500Name
@NotNull public java.math.BigInteger getEntropyRoot()
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.
@Nullable public MockNodeConfigOverrides getConfigOverrides()
Add/override behaviour of the
NodeConfiguration mock object.
@NotNull public java.util.Collection<net.corda.testing.node.TestCordapp> getAdditionalCordapps()
s that will be added to this node in addition to the ones shared by all nodes, which get specified at class MockNetwork
level.
class TestCordapp
,
class MockNetwork
@Nullable public java.lang.Integer component1()
Override the ID to use for the node.
By default node ID's are generated sequentially in aclass MockNetwork
. Specifying the same ID is required if a node is restarted.
class MockNetwork
@Nullable public CordaX500Name component2()
The
class CordaX500Name
name to use for the node.
class CordaX500Name
@NotNull public java.math.BigInteger component3()
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.
@Nullable public MockNodeConfigOverrides component4()
Add/override behaviour of the
NodeConfiguration mock object.
@NotNull public java.util.Collection<net.corda.testing.node.TestCordapp> component5()
s that will be added to this node in addition to the ones shared by all nodes, which get specified at class MockNetwork
level.
class TestCordapp
,
class MockNetwork
@NotNull public MockNodeParameters copy(@Nullable java.lang.Integer forcedID, @Nullable CordaX500Name legalName, @NotNull java.math.BigInteger entropyRoot, @Nullable MockNodeConfigOverrides configOverrides, @NotNull java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps)
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.
@NotNull public java.lang.String toString()
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.
public int hashCode()
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.
public boolean equals(@Nullable java.lang.Object p)
Immutable builder for configuring a class StartedMockNode
or an class UnstartedMockNode
via MockNetwork.createNode
and
MockNetwork.createUnstartedNode
. Kotlin users can also use the named parameters overloads of those methods which
are more convenient.