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
Mostrar archivo Open project: rogeralsing/akka.net Class Usage Examples

Public Properties

Property Type Description
Empty Reachability

Public Methods

Method 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

Method 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 method

public AllUnreachableFrom ( UniqueAddress observer ) : ImmutableHashSet
observer UniqueAddress
return ImmutableHashSet

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsReachable() public method

public IsReachable ( UniqueAddress node ) : bool
node UniqueAddress
return bool

IsReachable() public method

public IsReachable ( UniqueAddress observer, UniqueAddress subject ) : bool
observer UniqueAddress
subject UniqueAddress
return bool

Merge() public method

public Merge ( IEnumerable allowed, Reachability other ) : Reachability
allowed IEnumerable
other Reachability
return Reachability

Reachability() public method

public Reachability ( ImmutableList records, long>.ImmutableDictionary versions ) : System
records ImmutableList
versions long>.ImmutableDictionary
return System

Reachable() public method

public Reachable ( UniqueAddress observer, UniqueAddress subject ) : Reachability
observer UniqueAddress
subject UniqueAddress
return Reachability

RecordsFrom() public method

public RecordsFrom ( UniqueAddress observer ) : ImmutableList
observer UniqueAddress
return ImmutableList

Remove() public method

public Remove ( IEnumerable nodes ) : Reachability
nodes IEnumerable
return Reachability

Status() public method

public Status ( UniqueAddress node ) : ReachabilityStatus
node UniqueAddress
return ReachabilityStatus

Status() public method

public Status ( UniqueAddress observer, UniqueAddress subject ) : ReachabilityStatus
observer UniqueAddress
subject UniqueAddress
return ReachabilityStatus

Terminated() public method

public Terminated ( UniqueAddress observer, UniqueAddress subject ) : Reachability
observer UniqueAddress
subject UniqueAddress
return Reachability

ToString() public method

public ToString ( ) : string
return string

Unreachable() public method

public Unreachable ( UniqueAddress observer, UniqueAddress subject ) : Reachability
observer UniqueAddress
subject UniqueAddress
return Reachability

Property Details

Empty public_oe static_oe property

public static Reachability,Akka.Cluster Empty
return Reachability