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.
Constructor and Description |
---|
MockNodeParameters(java.lang.Integer forcedID,
CordaX500Name legalName,
java.math.BigInteger entropyRoot,
MockNodeConfigOverrides configOverrides,
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. |
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. |
MockNodeParameters(java.lang.Integer forcedID,
CordaX500Name legalName,
java.math.BigInteger entropyRoot,
MockNodeConfigOverrides configOverrides) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
component1()
Override the ID to use for the node.
|
CordaX500Name |
component2()
The
|
java.math.BigInteger |
component3()
the initial entropy value to use when generating keys.
|
MockNodeConfigOverrides |
component4()
Add/override behaviour of the
|
java.util.Collection<net.corda.testing.node.TestCordapp> |
component5()
|
MockNodeParameters |
copy(java.lang.Integer forcedID,
CordaX500Name legalName,
java.math.BigInteger entropyRoot,
MockNodeConfigOverrides configOverrides) |
MockNodeParameters |
copy(java.lang.Integer forcedID,
CordaX500Name legalName,
java.math.BigInteger entropyRoot,
MockNodeConfigOverrides configOverrides,
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. |
boolean |
equals(java.lang.Object p) |
java.util.Collection<net.corda.testing.node.TestCordapp> |
getAdditionalCordapps()
|
MockNodeConfigOverrides |
getConfigOverrides()
Add/override behaviour of the
|
java.math.BigInteger |
getEntropyRoot()
the initial entropy value to use when generating keys.
|
java.lang.Integer |
getForcedID()
Override the ID to use for the node.
|
CordaX500Name |
getLegalName()
The
|
int |
hashCode() |
java.lang.String |
toString() |
MockNodeParameters |
withAdditionalCordapps(java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps) |
MockNodeParameters |
withConfigOverrides(MockNodeConfigOverrides configOverrides) |
MockNodeParameters |
withEntropyRoot(java.math.BigInteger entropyRoot) |
MockNodeParameters |
withForcedID(java.lang.Integer forcedID) |
MockNodeParameters |
withLegalName(CordaX500Name legalName) |
public MockNodeParameters(java.lang.Integer forcedID, CordaX500Name legalName, java.math.BigInteger entropyRoot, MockNodeConfigOverrides configOverrides, 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(java.lang.Integer forcedID, CordaX500Name legalName, java.math.BigInteger entropyRoot, MockNodeConfigOverrides configOverrides)
public MockNodeParameters withForcedID(java.lang.Integer forcedID)
public MockNodeParameters withLegalName(CordaX500Name legalName)
public MockNodeParameters withEntropyRoot(java.math.BigInteger entropyRoot)
public MockNodeParameters withConfigOverrides(MockNodeConfigOverrides configOverrides)
public MockNodeParameters withAdditionalCordapps(java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps)
public MockNodeParameters copy(java.lang.Integer forcedID, CordaX500Name legalName, java.math.BigInteger entropyRoot, MockNodeConfigOverrides configOverrides)
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
public CordaX500Name getLegalName()
The
class CordaX500Name
name to use for the node.
class CordaX500Name
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.
public MockNodeConfigOverrides getConfigOverrides()
Add/override behaviour of the
NodeConfiguration mock object.
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
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
public CordaX500Name component2()
The
class CordaX500Name
name to use for the node.
class CordaX500Name
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.
public MockNodeConfigOverrides component4()
Add/override behaviour of the
NodeConfiguration mock object.
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
public MockNodeParameters copy(java.lang.Integer forcedID, CordaX500Name legalName, java.math.BigInteger entropyRoot, MockNodeConfigOverrides configOverrides, 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.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)