Exemplo n.º 1
0
        public MSR(string fileName, TrieSettings trieSettings, DBriizeConfiguration configuration)
        {
            this._fileName      = fileName;
            this._configuration = configuration;
            this._trieSettings  = trieSettings;
            DefaultPointerLen   = this._trieSettings.POINTER_LENGTH;

            InitFiles();
        }
Exemplo n.º 2
0
        public FSR(string fileName, TrieSettings trieSettings, DBriizeConfiguration configuration)
        {
            this._fileName      = fileName;
            this._configuration = configuration;
            this._trieSettings  = trieSettings;
            DefaultPointerLen   = this._trieSettings.POINTER_LENGTH;

            _backupIsActive = this._configuration.Backup.IsActive;

            //Transforms fileName into ulong digit
            ulFileName = this._configuration.Backup.BackupFNP.ParseFilename(Path.GetFileNameWithoutExtension(this._fileName));

            InitFiles();
        }
Exemplo n.º 3
0
        public StorageLayer(string fileName, TrieSettings trieSettings, DBriizeConfiguration configuration)
        {
            if (trieSettings.StorageWasOverriden)
            {
                switch (trieSettings.AlternativeTableStorageType)
                {
                case DBriizeConfiguration.eStorage.DISK:

                    _tableStorage = (IStorage) new FSR(fileName, trieSettings, configuration);

                    break;

                case DBriizeConfiguration.eStorage.MEMORY:

                    _tableStorage = (IStorage) new MSR(fileName, trieSettings, configuration);

                    break;

                case DBriizeConfiguration.eStorage.RemoteInstance:

                    _tableStorage = (IStorage) new RISR(fileName, trieSettings, configuration);

                    break;
                }
            }
            else
            {
                switch (configuration.Storage)
                {
                case DBriizeConfiguration.eStorage.DISK:

                    _tableStorage = (IStorage) new FSR(fileName, trieSettings, configuration);

                    break;

                case DBriizeConfiguration.eStorage.MEMORY:

                    _tableStorage = (IStorage) new MSR(fileName, trieSettings, configuration);

                    break;

                case DBriizeConfiguration.eStorage.RemoteInstance:

                    _tableStorage = (IStorage) new RISR(fileName, trieSettings, configuration);

                    break;
                }
            }
        }
Exemplo n.º 4
0
        public RISR(string fileName, TrieSettings trieSettings, DBriizeConfiguration configuration)
        {
            this._fileName      = fileName;
            this._configuration = configuration;
            this._trieSettings  = trieSettings;
            DefaultPointerLen   = this._trieSettings.POINTER_LENGTH;

            _backupIsActive = this._configuration.Backup.IsActive;

            //Transforms fileName into ulong digit
            ulFileName = this._configuration.Backup.BackupFNP.ParseFilename(Path.GetFileNameWithoutExtension(this._fileName));

            //Setting up RemoteCommander
            RIC = new DBriize.Storage.RemoteInstance.RemoteInstanceCommander(configuration.RICommunicator);

            InitFiles();
        }