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

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.

Properties

cluster

val cluster: ClusterSpec?

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

maximumHeapSize

var maximumHeapSize: String

name

val name: CordaX500Name

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

rpcUsers

val rpcUsers: List<User>

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

validating

val validating: Boolean

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

verifierType

val verifierType: VerifierType

How the notary will verify transactions.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.