public MSR(string fileName, TrieSettings trieSettings, DBriizeConfiguration configuration) { this._fileName = fileName; this._configuration = configuration; this._trieSettings = trieSettings; DefaultPointerLen = this._trieSettings.POINTER_LENGTH; InitFiles(); }
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(); }
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; } } }
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(); }