public AutoDiscoverySender(IRendezvousCluster rendezvousCluster, ISocketFactory socketFactory, IPerformanceCounterManager <KinoPerformanceCounters> performanceCounterManager, ILogger logger) { this.rendezvousCluster = rendezvousCluster; this.socketFactory = socketFactory; this.performanceCounterManager = performanceCounterManager; this.logger = logger; outgoingMessages = new BlockingCollection <IMessage>(new ConcurrentQueue <IMessage>()); }
public ClusterMonitorProvider(ISocketFactory socketFactory, RouterConfiguration routerConfiguration, IClusterMembership clusterMembership, ClusterMembershipConfiguration membershipConfiguration, IRendezvousCluster rendezvousCluster, ILogger logger) { clusterMonitor = membershipConfiguration.RunAsStandalone ? (IClusterMonitor) new LoopbackClusterMonitor() : new ClusterMonitor(socketFactory, routerConfiguration, clusterMembership, membershipConfiguration, rendezvousCluster, logger); }
public ClusterMonitor(ISocketFactory socketFactory, RouterConfiguration routerConfiguration, IClusterMembership clusterMembership, ClusterMembershipConfiguration membershipConfiguration, IRendezvousCluster rendezvousCluster, ILogger logger) { this.logger = logger; this.membershipConfiguration = membershipConfiguration; pingReceived = new ManualResetEventSlim(false); newRendezvousConfiguration = new ManualResetEventSlim(false); this.socketFactory = socketFactory; this.routerConfiguration = routerConfiguration; this.clusterMembership = clusterMembership; this.rendezvousCluster = rendezvousCluster; outgoingMessages = new BlockingCollection<IMessage>(new ConcurrentQueue<IMessage>()); }
public AutoDiscoveryListener(IRendezvousCluster rendezvousCluster, ISocketFactory socketFactory, IScaleOutConfigurationProvider scaleOutConfigurationProvider, ClusterMembershipConfiguration membershipConfiguration, IPerformanceCounterManager <KinoPerformanceCounters> performanceCounterManager, ILocalSocket <IMessage> localRouterSocket, ILogger logger) { this.logger = logger; this.membershipConfiguration = membershipConfiguration; this.performanceCounterManager = performanceCounterManager; this.localRouterSocket = localRouterSocket; this.rendezvousCluster = rendezvousCluster; this.socketFactory = socketFactory; this.scaleOutConfigurationProvider = scaleOutConfigurationProvider; heartBeatReceived = new ManualResetEvent(false); newRendezvousConfiguration = new ManualResetEvent(false); }