public class NodeParameters
Parameters for creating a node for DriverDSL.startNode
.
DriverDSL.startNode
Constructor and Description |
---|
NodeParameters(CordaX500Name providedName,
java.util.List<net.corda.testing.node.User> rpcUsers,
VerifierType verifierType,
java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides,
java.lang.Boolean startInSameProcess,
java.lang.String maximumHeapSize,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps,
java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>> flowOverrides)
Parameters for creating a node for
DriverDSL.startNode . |
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(CordaX500Name providedName,
java.util.List<net.corda.testing.node.User> rpcUsers,
VerifierType verifierType,
java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides,
java.lang.Boolean startInSameProcess,
java.lang.String maximumHeapSize) |
Modifier and Type | Method and Description |
---|---|
CordaX500Name |
component1()
Optional name of the node,
|
java.util.List<net.corda.testing.node.User> |
component2()
List of users who are authorised to use the RPC system.
|
VerifierType |
component3()
The type of transaction verifier to use.
|
java.util.Map<java.lang.String,java.lang.Object> |
component4()
A map of custom node configuration overrides.
|
java.lang.Boolean |
component5()
Determines if the node should be started inside the same process the Driver is running
|
java.lang.String |
component6()
The maximum JVM heap size to use for the node.
|
java.util.Collection<net.corda.testing.node.TestCordapp> |
component7()
Additional
|
java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,java.lang.Class> |
component8() |
NodeParameters |
copy(CordaX500Name providedName,
java.util.List<net.corda.testing.node.User> rpcUsers,
VerifierType verifierType,
java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides,
java.lang.Boolean startInSameProcess,
java.lang.String maximumHeapSize) |
NodeParameters |
copy(CordaX500Name providedName,
java.util.List<net.corda.testing.node.User> rpcUsers,
VerifierType verifierType,
java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides,
java.lang.Boolean startInSameProcess,
java.lang.String maximumHeapSize,
java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps,
java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>> flowOverrides)
Parameters for creating a node for
DriverDSL.startNode . |
boolean |
equals(java.lang.Object p) |
java.util.Collection<net.corda.testing.node.TestCordapp> |
getAdditionalCordapps()
Additional
|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomOverrides()
A map of custom node configuration overrides.
|
java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,java.lang.Class> |
getFlowOverrides() |
java.lang.String |
getMaximumHeapSize()
The maximum JVM heap size to use for the node.
|
CordaX500Name |
getProvidedName()
Optional name of the node,
|
java.util.List<net.corda.testing.node.User> |
getRpcUsers()
List of users who are authorised to use the RPC system.
|
java.lang.Boolean |
getStartInSameProcess()
Determines if the node should be started inside the same process the Driver is running
|
VerifierType |
getVerifierType()
The type of transaction verifier to use.
|
int |
hashCode() |
java.lang.String |
toString() |
NodeParameters |
withAdditionalCordapps(java.util.Set<? extends net.corda.testing.node.TestCordapp> additionalCordapps) |
NodeParameters |
withCustomOverrides(java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides) |
NodeParameters |
withFlowOverrides(java.util.Map<java.lang.Class,? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>> flowOverrides) |
NodeParameters |
withMaximumHeapSize(java.lang.String maximumHeapSize) |
NodeParameters |
withProvidedName(CordaX500Name providedName) |
NodeParameters |
withRpcUsers(java.util.List<net.corda.testing.node.User> rpcUsers) |
NodeParameters |
withStartInSameProcess(java.lang.Boolean startInSameProcess) |
NodeParameters |
withVerifierType(VerifierType verifierType) |
public NodeParameters(CordaX500Name providedName, java.util.List<net.corda.testing.node.User> rpcUsers, VerifierType verifierType, java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides, java.lang.Boolean startInSameProcess, java.lang.String maximumHeapSize, java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps, java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>> flowOverrides)
Parameters for creating a node for DriverDSL.startNode
.
providedName
- Optional name of the node, which will be its legal name in class Party
. Defaults to something random. Note that this must be unique as the driver uses it as a primary key!rpcUsers
- List of users who are authorised to use the RPC system. Defaults to a single user with all permissions.verifierType
- The type of transaction verifier to use. See: enum VerifierType
customOverrides
- A map of custom node configuration overrides.startInSameProcess
- 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.maximumHeapSize
- The maximum JVM heap size to use for the node. Defaults to 512 MB.additionalCordapps
- Additional class TestCordapp
s that this node will have available, in addition to the ones common to all nodesmanaged by the interface DriverDSL
.DriverDSL.startNode
public 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.
public NodeParameters(CordaX500Name providedName, java.util.List<net.corda.testing.node.User> rpcUsers, VerifierType verifierType, java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides, java.lang.Boolean startInSameProcess, java.lang.String maximumHeapSize)
public NodeParameters withProvidedName(CordaX500Name providedName)
public NodeParameters withRpcUsers(java.util.List<net.corda.testing.node.User> rpcUsers)
public NodeParameters withVerifierType(VerifierType verifierType)
public NodeParameters withCustomOverrides(java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides)
public NodeParameters withStartInSameProcess(java.lang.Boolean startInSameProcess)
public NodeParameters withMaximumHeapSize(java.lang.String maximumHeapSize)
public NodeParameters withAdditionalCordapps(java.util.Set<? extends net.corda.testing.node.TestCordapp> additionalCordapps)
public NodeParameters withFlowOverrides(java.util.Map<java.lang.Class,? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>> flowOverrides)
public NodeParameters copy(CordaX500Name providedName, java.util.List<net.corda.testing.node.User> rpcUsers, VerifierType verifierType, java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides, java.lang.Boolean startInSameProcess, java.lang.String maximumHeapSize)
public CordaX500Name getProvidedName()
Optional name of the node,
which will be its legal name in class Party
. Defaults to something random. Note that this must be unique as the driver uses it as a primary key!
class Party
public java.util.List<net.corda.testing.node.User> getRpcUsers()
List of users who are authorised to use the RPC system.
Defaults to a single user with all permissions.
public VerifierType getVerifierType()
The type of transaction verifier to use.
See: enum VerifierType
enum VerifierType
public java.util.Map<java.lang.String,java.lang.Object> getCustomOverrides()
A map of custom node configuration overrides.
public java.lang.Boolean getStartInSameProcess()
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.
public java.lang.String getMaximumHeapSize()
The maximum JVM heap size to use for the node.
Defaults to 512 MB.
public java.util.Collection<net.corda.testing.node.TestCordapp> getAdditionalCordapps()
Additional
class TestCordapp
s that this node will have available, in addition to the ones common to all nodesmanaged by the interface DriverDSL
.
class TestCordapp
,
interface DriverDSL
public java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,java.lang.Class> getFlowOverrides()
public CordaX500Name component1()
Optional name of the node,
which will be its legal name in class Party
. Defaults to something random. Note that this must be unique as the driver uses it as a primary key!
class Party
public java.util.List<net.corda.testing.node.User> component2()
List of users who are authorised to use the RPC system.
Defaults to a single user with all permissions.
public VerifierType component3()
The type of transaction verifier to use.
See: enum VerifierType
enum VerifierType
public java.util.Map<java.lang.String,java.lang.Object> component4()
A map of custom node configuration overrides.
public java.lang.Boolean component5()
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.
public java.lang.String component6()
The maximum JVM heap size to use for the node.
Defaults to 512 MB.
public java.util.Collection<net.corda.testing.node.TestCordapp> component7()
Additional
class TestCordapp
s that this node will have available, in addition to the ones common to all nodesmanaged by the interface DriverDSL
.
class TestCordapp
,
interface DriverDSL
public java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,java.lang.Class> component8()
public NodeParameters copy(CordaX500Name providedName, java.util.List<net.corda.testing.node.User> rpcUsers, VerifierType verifierType, java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides, java.lang.Boolean startInSameProcess, java.lang.String maximumHeapSize, java.util.Collection<? extends net.corda.testing.node.TestCordapp> additionalCordapps, java.util.Map<? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>,? extends java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>>> flowOverrides)
Parameters for creating a node for DriverDSL.startNode
.
DriverDSL.startNode
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)