ClusterSpec.Raft
Keywords: net.corda.testing.node.ClusterSpec.Raft class
Date: 2023-09-18

net.corda.testing.node

## Class ClusterSpec.Raft

- net.corda.testing.node.ClusterSpec
- - net.corda.testing.node.ClusterSpec.Raft

- Enclosing class:
    ClusterSpec

      public static class ClusterSpec.Raft
      extends ClusterSpec

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

- - ### Constructor Detail

    - #### Raft

          public Raft(int clusterSize)

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

      Parameters:
        `clusterSize` - The number of nodes within the cluster.

  - ### Method Detail

    - #### getClusterSize

          public int getClusterSize()

      The number of nodes within the cluster.

    - #### component1

          public int component1()

      The number of nodes within the cluster.

    - #### copy

          @NotNull
          public net.corda.testing.node.ClusterSpec.Raft copy(int clusterSize)

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

    - #### toString

          @NotNull
          public java.lang.String toString()

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

    - #### hashCode

          public int hashCode()

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

    - #### equals

          public boolean equals(@Nullable
                                java.lang.Object p)

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