corda / net.corda.testing.node / NotarySpec

NotarySpec

data class NotarySpec

A notary spec for describing a notary which will be started automatically by the driver and which will be part of the network parameters used by all the nodes.

Constructors

<init>

NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, maximumHeapSize: String)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, maximumHeapSize: String = "512m", startInProcess: Boolean = true)

A notary spec for describing a notary which will be started automatically by the driver and which will be part of the network parameters used by all the nodes.

NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, startInProcess: Boolean = true)

Properties

cluster

ClusterSpec if this is a distributed cluster notary. If null then this is a single-node notary.

val cluster: ClusterSpec?

maximumHeapSize

var maximumHeapSize: String

name

The name of the notary. If this is a notary cluster then each node member will be assigned a name based on this name.

val name: CordaX500Name

rpcUsers

A list of users able to instigate RPC for this node or cluster of nodes.

val rpcUsers: List<User>

startInProcess

Should the notary be started in process.

val startInProcess: Boolean

validating

Boolean for whether the notary is validating or non-validating.

val validating: Boolean

verifierType

How the notary will verify transactions.

val verifierType: VerifierType

Functions

copy

fun copy(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null): NotarySpec