C# Class Akka.Cluster.Reachability

Immutable data structure that holds the reachability status of subject nodes as seen from observer nodes. Failure detector for the subject nodes exist on the observer nodes. Changes (reachable, unreachable, terminated) are only performed by observer nodes to its own records. Each change bumps the version number of the record, and thereby it is always possible to determine which record is newest merging two instances. Aggregated status of a subject node is defined as (in this order): - Terminated if any observer node considers it as Terminated - Unreachable if any observer node considers it as Unreachable - Reachable otherwise, i.e. no observer node considers it as Unreachable
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty Reachability

Méthodes publiques

Méthode Description
AllUnreachableFrom ( UniqueAddress observer ) : ImmutableHashSet
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsReachable ( UniqueAddress node ) : bool
IsReachable ( UniqueAddress observer, UniqueAddress subject ) : bool
Merge ( IEnumerable allowed, Reachability other ) : Reachability
Reachability ( ImmutableList records, long>.ImmutableDictionary versions ) : System
Reachable ( UniqueAddress observer, UniqueAddress subject ) : Reachability
RecordsFrom ( UniqueAddress observer ) : ImmutableList
Remove ( IEnumerable nodes ) : Reachability
Status ( UniqueAddress node ) : ReachabilityStatus
Status ( UniqueAddress observer, UniqueAddress subject ) : ReachabilityStatus
Terminated ( UniqueAddress observer, UniqueAddress subject ) : Reachability
ToString ( ) : string
Unreachable ( UniqueAddress observer, UniqueAddress subject ) : Reachability

Private Methods

Méthode Description
Change ( UniqueAddress observer, UniqueAddress subject, ReachabilityStatus status ) : Reachability
CurrentVersion ( UniqueAddress observer ) : long
NextVersion ( UniqueAddress observer ) : long
ObserverRows ( UniqueAddress observer ) : Record>.ImmutableDictionary

Method Details

AllUnreachableFrom() public méthode

public AllUnreachableFrom ( UniqueAddress observer ) : ImmutableHashSet
observer UniqueAddress
Résultat ImmutableHashSet

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsReachable() public méthode

public IsReachable ( UniqueAddress node ) : bool
node UniqueAddress
Résultat bool

IsReachable() public méthode

public IsReachable ( UniqueAddress observer, UniqueAddress subject ) : bool
observer UniqueAddress
subject UniqueAddress
Résultat bool

Merge() public méthode

public Merge ( IEnumerable allowed, Reachability other ) : Reachability
allowed IEnumerable
other Reachability
Résultat Reachability

Reachability() public méthode

public Reachability ( ImmutableList records, long>.ImmutableDictionary versions ) : System
records ImmutableList
versions long>.ImmutableDictionary
Résultat System

Reachable() public méthode

public Reachable ( UniqueAddress observer, UniqueAddress subject ) : Reachability
observer UniqueAddress
subject UniqueAddress
Résultat Reachability

RecordsFrom() public méthode

public RecordsFrom ( UniqueAddress observer ) : ImmutableList
observer UniqueAddress
Résultat ImmutableList

Remove() public méthode

public Remove ( IEnumerable nodes ) : Reachability
nodes IEnumerable
Résultat Reachability

Status() public méthode

public Status ( UniqueAddress node ) : ReachabilityStatus
node UniqueAddress
Résultat ReachabilityStatus

Status() public méthode

public Status ( UniqueAddress observer, UniqueAddress subject ) : ReachabilityStatus
observer UniqueAddress
subject UniqueAddress
Résultat ReachabilityStatus

Terminated() public méthode

public Terminated ( UniqueAddress observer, UniqueAddress subject ) : Reachability
observer UniqueAddress
subject UniqueAddress
Résultat Reachability

ToString() public méthode

public ToString ( ) : string
Résultat string

Unreachable() public méthode

public Unreachable ( UniqueAddress observer, UniqueAddress subject ) : Reachability
observer UniqueAddress
subject UniqueAddress
Résultat Reachability

Property Details

Empty public_oe static_oe property

public static Reachability,Akka.Cluster Empty
Résultat Reachability