StaticPeerRegistry

org.sigilaris.node.gossip.StaticPeerRegistry
final case class StaticPeerRegistry(topology: StaticPeerTopology) extends PeerRegistry

A PeerRegistry backed by a static peer topology.

Value parameters

topology

the static topology describing known peers and neighbors

Attributes

Source
Contracts.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PeerRegistry
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def isDirectNeighbor(peer: PeerIdentity): Boolean

Checks whether the given peer is a direct neighbor.

Checks whether the given peer is a direct neighbor.

Value parameters

peer

the peer identity to check

Attributes

Returns

true if the peer is a direct neighbor

Inherited from:
PeerRegistry
Source
Contracts.scala
def isKnownPeer(peer: PeerIdentity): Boolean

Checks whether the given peer is a known peer.

Checks whether the given peer is a known peer.

Value parameters

peer

the peer identity to check

Attributes

Returns

true if the peer is known

Inherited from:
PeerRegistry
Source
Contracts.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val directNeighbors: Set[PeerIdentity]

Attributes

Returns

the set of peers that are direct neighbors of the local peer

Source
Contracts.scala
override val knownPeers: Set[PeerIdentity]

Attributes

Returns

the set of all known peer identities in the network

Source
Contracts.scala
override val localPeer: PeerIdentity

Attributes

Returns

the identity of the local peer

Source
Contracts.scala