NotarySpec

data class NotarySpec(val name: CordaX500Name, val validating: Boolean = true, val rpcUsers: List<User> = emptyList(), val verifierType: VerifierType = VerifierType.InMemory, val cluster: ClusterSpec? = null, val 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.

Constructors

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

Properties

Link copied to clipboard
val cluster: ClusterSpec? = null

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

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Should the notary be started in process.

Link copied to clipboard
val validating: Boolean = true

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

Link copied to clipboard

How the notary will verify transactions.

Functions

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