Esempio n. 1
0
        /// <summary>
        /// TBD
        /// </summary>
        /// <param name="cluster">TBD</param>
        public ClusterReadView(Cluster cluster)
        {
            _cluster      = cluster;
            _state        = new ClusterEvent.CurrentClusterState();
            _reachability = Reachability.Empty;
            _latestStats  = new ClusterEvent.CurrentInternalStats(new GossipStats(), new VectorClockStats());
            _selfAddress  = cluster.SelfAddress;

            _eventBusListener =
                cluster.System.SystemActorOf(
                    Props.Create(() => new EventBusListener(cluster, this))
                    .WithDispatcher(cluster.Settings.UseDispatcher)
                    .WithDeploy(Deploy.Local), "clusterEventBusListener");
        }
Esempio n. 2
0
        public ClusterReadView(Cluster cluster)
        {
            _cluster = cluster;
            _state = new ClusterEvent.CurrentClusterState();
            _reachability = Reachability.Empty;
            _latestStats = new ClusterEvent.CurrentInternalStats(new GossipStats(), new VectorClockStats());
            _selfAddress = cluster.SelfAddress;

            _eventBusListener =
                cluster.System.SystemActorOf(
                    Props.Create(() => new EventBusListener(cluster, this))
                        .WithDispatcher(cluster.Settings.UseDispatcher)
                        .WithDeploy(Deploy.Local), "clusterEventBusListener");
        }
Esempio n. 3
0
 private void PublishInternalStats(ClusterEvent.CurrentInternalStats currentStats)
 {
     Publish(currentStats);
 }