public RavenTopologyInstaller()
        {
            var cf      = Catalog.Factory.Resolve <IConfig>(SpecialFactoryContexts.Routed);
            var company = cf[ApplicationTopologyLocalConfig.CompanyKey];

            _product = cf[ApplicationTopologyLocalConfig.ApplicationKey];

            _reg = new ApplicationNodeRegistry(company, _product);
        }
        public RavenGlobalConfig()
        {
            var cf      = Catalog.Factory.Resolve <IConfig>(SpecialFactoryContexts.Routed);
            var company = cf[ApplicationTopologyLocalConfig.CompanyKey];
            var product = cf[ApplicationTopologyLocalConfig.ApplicationKey];

            _reg = new ApplicationNodeRegistry(company, product);

            _log   = ClassLogger.Create(GetType());
            _dbLog = DebugOnlyLogger.Create(_log);

            _updateCycle = Catalog.Factory.Resolve <IRecurrence <object> >();
        }
Beispiel #3
0
        public RavenApplicationNodeRunner()
        {
            var cf         = Catalog.Factory.Resolve <IConfig>(SpecialFactoryContexts.Routed);
            var companyKey = cf[ApplicationTopologyLocalConfig.CompanyKey];
            var appKey     = cf[ApplicationTopologyLocalConfig.ApplicationKey];

            _reg = new ApplicationNodeRegistry(companyKey, appKey);

            var logPath  = cf[ApplicationTopologyLocalConfig.LogFilePath];
            var compType = cf[ApplicationTopologyLocalConfig.ComponentType];
            var logName  = compType + ".log";

            _recurrence  = Catalog.Factory.Resolve <IRecurrence <object> >();
            _logFilePath = Path.Combine(logPath, logName);
            _logConfig   = new LogConfigConsumer(_logFilePath);
            _gatherer    = Catalog.Factory.Resolve <IApplicationNodeGatherer>();

            _alert = Catalog.Factory.Resolve <IApplicationAlert>();

            var rnd = new Random();

            _updateCycle = TimeSpan.FromSeconds(60.0 + (rnd.NextDouble() * 30.0));
        }
 public ApplicationAlertSink(string company, string product)
 {
     _reg = new ApplicationNodeRegistry(company, product);
 }