@NotNull public static NotaryHandle getDefaultNotaryHandle(DriverDSL $this)
Returns the class NotaryHandle
for the single notary on the network. Throws if there are none or more than one.
class NotaryHandle
,
notaryHandles
@NotNull public static Party getDefaultNotaryIdentity(DriverDSL $this)
Returns the identity of the single notary on the network. Throws if there are none or more than one.
defaultNotaryHandle
@NotNull public static CordaFuture<net.corda.testing.driver.NodeHandle> getDefaultNotaryNode(DriverDSL $this)
Returns a interface CordaFuture
on the interface NodeHandle
for the single-node notary on the network. Throws if there
are no notaries or more than one, or if the notary is a distributed cluster.
@NotNull public static CordaFuture<net.corda.testing.driver.NodeHandle> startNode(DriverDSL $this)
Start a node using the default values of class NodeParameters
.
interface CordaFuture
on the interface NodeHandle
to the node. The future will complete when the node is available and
it sees all previously started nodes, including the notaries.class NodeParameters
@NotNull public static CordaFuture<net.corda.testing.driver.NodeHandle> startNode(DriverDSL $this, @NotNull NodeParameters defaultParameters, @Nullable CordaX500Name providedName, @NotNull java.util.List<net.corda.testing.node.User> rpcUsers, @NotNull VerifierType verifierType, @NotNull java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides, @Nullable java.lang.Boolean startInSameProcess, @NotNull java.lang.String maximumHeapSize, @Nullable java.lang.String logLevelOverride)
Start a node.
NOTE: This method does not provide all the node parameters that are available and only exists for backwards compatibility. It is
recommended you use class NodeParameters
.
$this
- The default parameters for the node. If any of the remaining parameters to this method are specified thentheir values are taken instead of the corresponding value in defaultParameters
.defaultParameters
- 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!providedName
- List of users who are authorised to use the RPC system. Defaults to empty list.rpcUsers
- The type of transaction verifier to use. See: enum VerifierType
.verifierType
- A map of custom node configuration overrides.customOverrides
- 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.startInSameProcess
- The maximum JVM heap size to use for the node as a String. By default a number is interpreted as being in bytes. Append the letter 'k' or 'K' to the value to indicate Kilobytes, 'm' or 'M' to indicate megabytes, and 'g' or 'G' to indicate gigabytes. The default value is "512m" = 512 megabytes.maximumHeapSize
- log4j log level used to override the default value of info.logLevelOverride
- log4j log level used to override the default value of info.interface CordaFuture
on the interface NodeHandle
to the node. The future will complete when the node is available and
it sees all previously started nodes, including the notaries.class NodeParameters
@NotNull public static CordaFuture<net.corda.testing.driver.NodeHandle> startNode(DriverDSL $this, @NotNull NodeParameters defaultParameters, @Nullable CordaX500Name providedName, @NotNull java.util.List<net.corda.testing.node.User> rpcUsers, @NotNull VerifierType verifierType, @NotNull java.util.Map<java.lang.String,? extends java.lang.Object> customOverrides, @Nullable java.lang.Boolean startInSameProcess, @NotNull java.lang.String maximumHeapSize)
Start a node.
NOTE: This method does not provide all the node parameters that are available and only exists for backwards compatibility. It is
recommended you use class NodeParameters
.
$this
- The default parameters for the node. If any of the remaining parameters to this method are specified thentheir values are taken instead of the corresponding value in defaultParameters
.defaultParameters
- 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!providedName
- List of users who are authorised to use the RPC system. Defaults to empty list.rpcUsers
- The type of transaction verifier to use. See: enum VerifierType
.verifierType
- A map of custom node configuration overrides.customOverrides
- 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.startInSameProcess
- The maximum JVM heap size to use for the node as a String. By default a number is interpreted as being in bytes. Append the letter 'k' or 'K' to the value to indicate Kilobytes, 'm' or 'M' to indicate megabytes, and 'g' or 'G' to indicate gigabytes. The default value is "512m" = 512 megabytes.maximumHeapSize
- The maximum JVM heap size to use for the node as a String. By default a number is interpreted
as being in bytes. Append the letter 'k' or 'K' to the value to indicate Kilobytes, 'm' or 'M' to indicate
megabytes, and 'g' or 'G' to indicate gigabytes. The default value is "512m" = 512 megabytes.interface CordaFuture
on the interface NodeHandle
to the node. The future will complete when the node is available and
it sees all previously started nodes, including the notaries.class NodeParameters
@NotNull public static CordaFuture<net.corda.testing.driver.WebserverHandle> startWebserver(DriverDSL $this, @NotNull NodeHandle handle)
Call startWebserver
with a default maximumHeapSize.
startWebserver
public static int nextPort(DriverDSL $this)
Returns the next port to use when instantiating test processes that must not conflict on the same machine