/// <summary> /// Need to subscribe to cluster changes /// </summary> protected override void PreStart() { Cluster = Cluster.Get(Context.System); // subscribe to IMemberEvent and UnreachableMember events Cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, new[] { typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.UnreachableMember) }); }
protected override void PreStart() { _cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, new[] { typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.IClusterDomainEvent) }); }
/// <summary> /// Need to subscribe to cluster changes /// </summary> protected override void PreStart() { Cluster.Subscribe(Self, new[] { typeof(ClusterEvent.MemberUp) }); Cluster.RegisterOnMemberUp(() => { // create routers and other things that depend on me being UP in the cluster }); }
protected override void PreStart() { Cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, new[] { typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.UnreachableMember) }); }
protected override void PreStart() { var self = Self; _cluster.RegisterOnMemberUp(() => { self.Tell(new ReadinessStatus(true)); }); _cluster.RegisterOnMemberRemoved(() => { self.Tell(new ReadinessStatus(false)); }); _cluster.Subscribe(Self, ClusterEvent.SubscriptionInitialStateMode.InitialStateAsSnapshot, typeof(ClusterEvent.IReachabilityEvent)); }
public CoordinatedShutdownLeave() { Receive <LeaveReq>(req => { // MemberRemoved is needed in case it was downed instead _cluster.Leave(_cluster.SelfAddress); _cluster.Subscribe(Self, typeof(ClusterEvent.MemberLeft), typeof(ClusterEvent.MemberRemoved), typeof(ClusterEvent.MemberDowned)); var s = Sender; Become(() => WaitingLeaveCompleted(s)); }); }
protected override void PreStart() { base.PreStart(); Console.Title = $"JobRequester:{Cluster.SelfAddress}"; Cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.UnreachableMember) ); _upMembers = new HashSet <UniqueAddress>(); BecomeNoJobHandlerAvailableState(); }
protected override void PreStart() { Cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, new[] { typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.UnreachableMember) }); _pingWorker = Context .ActorOf(Akka.Actor.Props.Create(() => new PingActor()) .WithRouter(new RoundRobinPool(10))); }
/// <summary> /// TBD /// </summary> protected override void PreStart() { _cluster.Subscribe(Self, new [] { typeof(ClusterEvent.IClusterDomainEvent) }); base.PreStart(); }
/// <summary> /// Need to subscribe to cluster changes /// </summary> protected override void PreStart() { base.PreStart(); Cluster.Subscribe(Self, typeof(ClusterEvent.MemberUp)); }
protected override void PreStart() { base.PreStart(); _cluster.Subscribe(Self, typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.IReachabilityEvent)); }
protected override void PreStart() { _cluster.Subscribe(Self, new [] { typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.ReachabilityEvent) }); _cluster.LogInfo("Metrics collection has started successfully."); }
protected override void PreStart() { //subscribe to all cluster domain events _cluster.Subscribe(Self, new [] { typeof(ClusterEvent.IClusterDomainEvent) }); }
/// <summary> /// Need to subscribe to cluster changes /// </summary> protected override void PreStart() { Cluster.Subscribe(Self, new[] { typeof(ClusterEvent.MemberUp) }); }
protected override void PreStart() { _cluster.Subscribe(Self, AC.ClusterEvent.SubscriptionInitialStateMode.InitialStateAsEvents, typeof(AC.ClusterEvent.IClusterDomainEvent)); base.PreStart(); }
public ClusterMonitor() { // register for notifications Cluster.Subscribe(Self, new[] { typeof(ClusterEvent.IMemberEvent) }); }
protected override void PreStart() { Cluster.Subscribe(Self, typeof(MemberUp)); }
/// <summary> /// TBD /// </summary> protected override void PreStart() { base.PreStart(); _cluster.Subscribe(Self, new [] { typeof(ClusterEvent.IMemberEvent) }); }
/// <summary> /// Need to subscribe to cluster changes /// </summary> protected override void PreStart() { Cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, new[] { typeof(ClusterEvent.IMemberEvent), typeof(ClusterEvent.UnreachableMember) }); Context.ActorSelection("akka.tcp://[email protected]:2551/user/clusterListener").Tell(new HelloMessage("Hello")); }