C# Class Akka.Cluster.ClusterRemoteWatcher

Specialization of Akka.Remote.RemoteWatcher that keeps track of cluster member nodes and is responsible for watchees on cluster nodes. Akka.Actor.AddressTerminated is published when a node is removed from cluster `RemoteWatcher` handles non-cluster nodes. `ClusterRemoteWatcher` will take over responsibility from `RemoteWatcher` if a watch is added before a node is member of the cluster and then later becomes cluster member.
Inheritance: Akka.Remote.RemoteWatcher
Mostra file Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
ClusterRemoteWatcher ( IFailureDetectorRegistry
failureDetector, System.TimeSpan heartbeatInterval, System.TimeSpan unreachableReaperInterval, System.TimeSpan heartbeatExpectedResponseAfter ) : System
Props ( IFailureDetectorRegistry
failureDetector, System.TimeSpan heartbeatInterval, System.TimeSpan unreachableReaperInterval, System.TimeSpan heartbeatExpectedResponseAfter ) : Props

Factory method for Akka.Remote.RemoteWatcher

Protected Methods

Method Description
OnReceive ( object message ) : void
PostStop ( ) : void
PreStart ( ) : void
WatchNode ( IInternalActorRef watchee ) : void

Private Methods

Method Description
MemberRemoved ( ClusterEvent memberRemoved ) : void
MemberUp ( ClusterEvent memberUp ) : void
TakeOverResponsibility ( Akka.Actor.Address address ) : void

When a cluster node is added this class takes over the responsibility for watchees on that node already handled by base RemoteWatcher.

Method Details

ClusterRemoteWatcher() public method

public ClusterRemoteWatcher ( IFailureDetectorRegistry
failureDetector, System.TimeSpan heartbeatInterval, System.TimeSpan unreachableReaperInterval, System.TimeSpan heartbeatExpectedResponseAfter ) : System
failureDetector IFailureDetectorRegistry
heartbeatInterval System.TimeSpan
unreachableReaperInterval System.TimeSpan
heartbeatExpectedResponseAfter System.TimeSpan
return System

OnReceive() protected method

protected OnReceive ( object message ) : void
message object
return void

PostStop() protected method

protected PostStop ( ) : void
return void

PreStart() protected method

protected PreStart ( ) : void
return void

Props() public static method

Factory method for Akka.Remote.RemoteWatcher
public static Props ( IFailureDetectorRegistry
failureDetector, System.TimeSpan heartbeatInterval, System.TimeSpan unreachableReaperInterval, System.TimeSpan heartbeatExpectedResponseAfter ) : Props
failureDetector IFailureDetectorRegistry
heartbeatInterval System.TimeSpan
unreachableReaperInterval System.TimeSpan
heartbeatExpectedResponseAfter System.TimeSpan
return Props

WatchNode() protected method

protected WatchNode ( IInternalActorRef watchee ) : void
watchee IInternalActorRef
return void