Example #1
0
 public MessagePipline(IMessageEntrance messageEntrance, IMessageTermination messageTermination)
 {
     Entrance      = messageEntrance;
     Termination   = messageTermination;
     BusyCollector = MetricCollections.Default.MetricGetMetricCollector("busy");
     IdleCollector = MetricCollections.Default.MetricGetMetricCollector("idle");
 }
        public UtralisksSystemController(Bootstrap bootstrap, IHostedMachine hostedMachine)
            : base(bootstrap)
        {
            messageEntrance = new MessageEntrance(bootstrap.GetMessageQueueFromVariableSet("Entrance"));
            MetricCollections.Default.AddMetricCollector("idle", new IncreasedMetricCollector("UtraliskIdle"));
            MetricCollections.Default.AddMetricCollector("busy", new IncreasedMetricCollector("UtraliskBusy"));
            WorkingProcessor = new TransformIntegration(
                bootstrap.GetCachedFromVariableSet("CoreCache"),
                bootstrap.GetStorageFromVariableSet("CoreStorage")
                );
            IMessageTermination messageTermination = new MessageTermination(bootstrap, this);

            messagePipline     = new MessagePipline(messageEntrance, messageTermination);
            messageOut         = bootstrap.GetMessageQueueFromVariableSet("Termination");
            this.hostedMachine = hostedMachine;
        }
 public SiteToSiteJumpController(ICache cache, IMessageEntrance messageEntrance)
 {
     this.cache           = cache;
     this.messageEntrance = messageEntrance;
 }