Esempio n. 1
0
        /// <summary>
        /// Creates new instance of AquilesStorage type
        /// </summary>
        /// <param name="clusterName">Cluster name</param>
        /// <param name="keySpace">Key space name used to store IOG data</param>
        /// <param name="columnFamily">Column family name used to store IOG data</param>
        public AquilesStorage(string clusterName, string keySpace, string columnFamily)
        {
            AquilesHelper.Initialize();
            cluster = AquilesHelper.RetrieveCluster(clusterName);

            this.keySpace     = keySpace;
            this.columnFamily = columnFamily;
        }
Esempio n. 2
0
        protected void Application_Start()
        {
            ViewEngines.Engines.Clear();
            // ViewEngines.Engines.Add(new WebFormViewEngine());
            ViewEngines.Engines.Add(new RazorViewEngine());

            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AquilesHelper.Initialize();
        }
Esempio n. 3
0
        public void Initialize(ConfigSettings settings)
        {
            AquilesHelper.Initialize();
            _storage = new InventoryStorage(settings.InventoryCluster);

            _delayedMutationMgr = new DelayedMutationManager();
            _delayedMutationMgr.Start();
            _storage.DelayedMutationMgr = _delayedMutationMgr;

            if (settings.InventoryMigrationActive)
            {
                _legacyStorage = new LegacyMysqlInventoryStorage(settings.LegacyInventorySource);
            }

            _storageSelector = new CassandraMigrationProviderSelector(settings.InventoryMigrationActive, settings.CoreConnectionString,
                                                                      _storage, _legacyStorage);

            ProviderRegistry.Instance.RegisterInterface <IInventoryProviderSelector>(_storageSelector);
        }