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,
java.lang.String logLevelOverride,
NetworkHostAndPort rpcAddress)
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) |
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) |
Modifier and Type | Method and Description |
---|---|
CordaX500Name |
component1()
Optional name of the node,
|
NetworkHostAndPort |
component10()
optional override for RPC address on which node will be accepting RPC connections from the clients.
|
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() |
java.lang.String |
component9()
log level to be passed as parameter to an out of process node.
|
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) |
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,
java.lang.String logLevelOverride,
NetworkHostAndPort rpcAddress)
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 |
getLogLevelOverride()
log level to be passed as parameter to an out of process node.
|
java.lang.String |
getMaximumHeapSize()
The maximum JVM heap size to use for the node.
|
CordaX500Name |
getProvidedName()
Optional name of the node,
|
NetworkHostAndPort |
getRpcAddress()
optional override for RPC address on which node will be accepting RPC connections from the clients.
|
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 |
withLogLevelOverride(java.lang.String logLevelOverride) |
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, java.lang.String logLevelOverride, NetworkHostAndPort rpcAddress)
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
.logLevelOverride
- log level to be passed as parameter to an out of process node. ERROR, WARN, INFO, DEBUG, TRACE. This overrides debug portlog level argument.rpcAddress
- optional override for RPC address on which node will be accepting RPC connections from the clients. Port provided must be vacant.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(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)
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 withLogLevelOverride(java.lang.String logLevelOverride)
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 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)
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 java.lang.String getLogLevelOverride()
log level to be passed as parameter to an out of process node.
ERROR, WARN, INFO, DEBUG, TRACE. This overrides debug portlog level argument.
public NetworkHostAndPort getRpcAddress()
optional override for RPC address on which node will be accepting RPC connections from the clients.
Port provided must be vacant.
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 java.lang.String component9()
log level to be passed as parameter to an out of process node.
ERROR, WARN, INFO, DEBUG, TRACE. This overrides debug portlog level argument.
public NetworkHostAndPort component10()
optional override for RPC address on which node will be accepting RPC connections from the clients.
Port provided must be vacant.
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, java.lang.String logLevelOverride, NetworkHostAndPort rpcAddress)
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)