corda / net.corda.testing.node / ClusterSpec

ClusterSpec

@DoNotImplement abstract class ClusterSpec

Abstract class specifying information about the consensus algorithm used for a cluster of nodes.

Types

Raft

data class Raft : ClusterSpec

A class representing the configuration of a raft consensus algorithm used for a cluster of nodes.

Constructors

<init>

ClusterSpec()

Abstract class specifying information about the consensus algorithm used for a cluster of nodes.

Properties

clusterSize

abstract val clusterSize: Int

The number of nodes within the cluster.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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

Inheritors

Raft

data class Raft : ClusterSpec

A class representing the configuration of a raft consensus algorithm used for a cluster of nodes.