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

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.

startInProcess

val startInProcess: Boolean

Should the notary be started in process.

validating

val validating: Boolean

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

verifierType

val verifierType: VerifierType

How the notary will verify transactions.

Functions

copy

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

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

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