public static void Config(XmlElement xmlElement, ref SecondaryBTreeDatabaseConfig secBtreeDBConfig, bool compulsory) { uint minKeysPerPage = new uint(); SecondaryDatabaseConfig secDBConfig = secBtreeDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secDBConfig, compulsory); // Configure specific fields/properties of Btree db Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secBtreeDBConfig.Creation, compulsory); Configuration.ConfigDuplicatesPolicy(xmlElement, "Duplicates", ref secBtreeDBConfig.Duplicates, compulsory); if (Configuration.ConfigUint(xmlElement, "MinKeysPerPage", ref minKeysPerPage, compulsory)) { secBtreeDBConfig.MinKeysPerPage = minKeysPerPage; } Configuration.ConfigBool(xmlElement, "NoReverseSplitting", ref secBtreeDBConfig.NoReverseSplitting, compulsory); Configuration.ConfigBool(xmlElement, "UseRecordNumbers", ref secBtreeDBConfig.UseRecordNumbers, compulsory); }
public static void Config(XmlElement xmlElement, ref QueueDatabaseConfig queueDBConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); DatabaseConfig dbConfig = queueDBConfig; Config(xmlElement, ref dbConfig, compulsory); // Configure specific fields/properties of Queue database Configuration.ConfigBool(xmlElement, "ConsumeInOrder", ref queueDBConfig.ConsumeInOrder, compulsory); Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref queueDBConfig.Creation, compulsory); if (Configuration.ConfigUint(xmlElement, "Length", ref uintValue, compulsory)) { queueDBConfig.Length = uintValue; } if (Configuration.ConfigInt(xmlElement, "PadByte", ref intValue, compulsory)) { queueDBConfig.PadByte = intValue; } if (Configuration.ConfigUint(xmlElement, "ExtentSize", ref uintValue, compulsory)) { queueDBConfig.ExtentSize = uintValue; } }
public static void Config(XmlElement xmlElement, ref SecondaryRecnoDatabaseConfig secRecDBConfig, bool compulsory) { int intValue = new int(); uint uintValue = new uint(); SecondaryDatabaseConfig secDBConfig = secRecDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secDBConfig, compulsory); // Configure specific fields/properties of Recno database Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secRecDBConfig.Creation, compulsory); if (Configuration.ConfigInt(xmlElement, "Delimiter", ref intValue, compulsory)) { secRecDBConfig.Delimiter = intValue; } if (Configuration.ConfigUint(xmlElement, "Length", ref uintValue, compulsory)) { secRecDBConfig.Length = uintValue; } if (Configuration.ConfigInt(xmlElement, "PadByte", ref intValue, compulsory)) { secRecDBConfig.PadByte = intValue; } Configuration.ConfigBool(xmlElement, "Renumber", ref secRecDBConfig.Renumber, compulsory); Configuration.ConfigBool(xmlElement, "Snapshot", ref secRecDBConfig.Snapshot, compulsory); }
public static void Config(XmlElement xmlElement, ref SequenceConfig seqConfig, bool compulsory) { uint uintValue = new uint(); bool boolValue = new bool(); long longValue = new long(); if (Configuration.ConfigUint(xmlElement, "CacheSize", ref uintValue, compulsory)) { seqConfig.CacheSize = uintValue; } Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref seqConfig.Creation, compulsory); if (Configuration.ConfigBool(xmlElement, "Decrement", ref boolValue, compulsory)) { seqConfig.Decrement = boolValue; } Configuration.ConfigBool(xmlElement, "FreeThreaded", ref seqConfig.FreeThreaded, compulsory); if (Configuration.ConfigBool(xmlElement, "Increment", ref boolValue, compulsory)) { seqConfig.Increment = boolValue; } if (Configuration.ConfigLong(xmlElement, "InitialValue", ref longValue, compulsory)) { seqConfig.InitialValue = longValue; } Configuration.ConfigBool(xmlElement, "Wrap", ref seqConfig.Wrap, compulsory); }
public static void Config(XmlElement xmlElement, ref SecondaryDatabaseConfig secDBConfig, bool compulsory) { Configuration.ConfigBool(xmlElement, "ImmutableKey", ref secDBConfig.ImmutableKey, compulsory); Configuration.ConfigBool(xmlElement, "Populate", ref secDBConfig.Populate, compulsory); }
public static void Config(XmlElement xmlElement, ref TransactionConfig txnConfig, bool compulsory) { Configuration.ConfigIsolation(xmlElement, "IsolationDegree", ref txnConfig.IsolationDegree, compulsory); Configuration.ConfigBool(xmlElement, "NoWait", ref txnConfig.NoWait, compulsory); Configuration.ConfigBool(xmlElement, "Snapshot", ref txnConfig.Snapshot, compulsory); Configuration.ConfigLogFlush(xmlElement, "SyncAction", ref txnConfig.SyncAction, compulsory); }
public static void Config(XmlElement xmlElement, ref CursorConfig cursorConfig, bool compulsory) { Configuration.ConfigIsolation(xmlElement, "IsolationDegree", ref cursorConfig.IsolationDegree, compulsory); Configuration.ConfigCachePriority(xmlElement, "Priority", ref cursorConfig.Priority, compulsory); Configuration.ConfigBool(xmlElement, "SnapshotIsolation", ref cursorConfig.SnapshotIsolation, compulsory); Configuration.ConfigBool(xmlElement, "WriteCursor", ref cursorConfig.WriteCursor, compulsory); }
public static void Config(XmlElement xmlElement, ref LogConfig logConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); Configuration.ConfigBool(xmlElement, "AutoRemove", ref logConfig.AutoRemove, compulsory); if (Configuration.ConfigUint(xmlElement, "BufferSize", ref uintValue, compulsory)) { logConfig.BufferSize = uintValue; } Configuration.ConfigString(xmlElement, "Dir", ref logConfig.Dir, compulsory); if (Configuration.ConfigInt(xmlElement, "FileMode", ref intValue, compulsory)) { logConfig.FileMode = intValue; } Configuration.ConfigBool(xmlElement, "ForceSync", ref logConfig.ForceSync, compulsory); Configuration.ConfigBool(xmlElement, "InMemory", ref logConfig.InMemory, compulsory); Configuration.ConfigBool(xmlElement, "LogExternalFileContent", ref logConfig.LogExternalFileContent, compulsory); if (Configuration.ConfigUint(xmlElement, "MaxFileSize", ref uintValue, compulsory)) { logConfig.MaxFileSize = uintValue; } Configuration.ConfigBool(xmlElement, "NoBuffer", ref logConfig.NoBuffer, compulsory); Configuration.ConfigBool(xmlElement, "NoSync", ref logConfig.NoSync, compulsory); if (Configuration.ConfigUint(xmlElement, "RegionSize", ref uintValue, compulsory)) { logConfig.RegionSize = uintValue; } Configuration.ConfigBool(xmlElement, "ZeroOnCreate", ref logConfig.ZeroOnCreate, compulsory); }
public static void Config(XmlElement xmlElement, ref DatabaseConfig dbConfig, bool compulsory) { uint pageSize = new uint(); Configuration.ConfigBool(xmlElement, "AutoCommit", ref dbConfig.AutoCommit, compulsory); Configuration.ConfigByteOrder(xmlElement, "ByteOrder", ref dbConfig.ByteOrder, compulsory); Configuration.ConfigCacheInfo(xmlElement, "CacheSize", ref dbConfig.CacheSize, compulsory); Configuration.ConfigBool(xmlElement, "DoChecksum", ref dbConfig.DoChecksum, compulsory); Configuration.ConfigString(xmlElement, "ErrorPrefix", ref dbConfig.ErrorPrefix, compulsory); Configuration.ConfigBool(xmlElement, "FreeThreaded", ref dbConfig.FreeThreaded, compulsory); Configuration.ConfigBool(xmlElement, "NoMMap", ref dbConfig.NoMMap, compulsory); Configuration.ConfigBool(xmlElement, "NonDurableTxns", ref dbConfig.NonDurableTxns, compulsory); if (Configuration.ConfigUint(xmlElement, "PageSize", ref pageSize, compulsory)) { dbConfig.PageSize = pageSize; } Configuration.ConfigCachePriority(xmlElement, "Priority", ref dbConfig.Priority, compulsory); Configuration.ConfigBool(xmlElement, "ReadOnly", ref dbConfig.ReadOnly, compulsory); Configuration.ConfigBool(xmlElement, "ReadUncommitted", ref dbConfig.ReadUncommitted, compulsory); Configuration.ConfigEncryption(xmlElement, "Encryption", dbConfig, compulsory); Configuration.ConfigBool(xmlElement, "Truncate", ref dbConfig.Truncate, compulsory); Configuration.ConfigBool(xmlElement, "UseMVCC", ref dbConfig.UseMVCC, compulsory); }
public static void Config(XmlElement xmlElement, ref DatabaseEnvironmentConfig envConfig, bool compulsory) { uint value = new uint(); DateTime time = new DateTime(); Configuration.ConfigBool(xmlElement, "AutoCommit", ref envConfig.AutoCommit, compulsory); Configuration.ConfigBool(xmlElement, "CDB_ALLDB", ref envConfig.CDB_ALLDB, compulsory); Configuration.ConfigBool(xmlElement, "Create", ref envConfig.Create, compulsory); Configuration.ConfigString(xmlElement, "CreationDir", ref envConfig.CreationDir, compulsory); Configuration.ConfigStringList(xmlElement, "DataDirs", ref envConfig.DataDirs, compulsory); Configuration.ConfigString(xmlElement, "ErrorPrefix", ref envConfig.ErrorPrefix, compulsory); Configuration.ConfigBool(xmlElement, "ForceFlush", ref envConfig.ForceFlush, compulsory); Configuration.ConfigBool(xmlElement, "FreeThreaded", ref envConfig.FreeThreaded, compulsory); Configuration.ConfigBool(xmlElement, "InitRegions", ref envConfig.InitRegions, compulsory); Configuration.ConfigString(xmlElement, "IntermediateDirMode", ref envConfig.IntermediateDirMode, compulsory); Configuration.ConfigBool(xmlElement, "Lockdown", ref envConfig.Lockdown, compulsory); if (Configuration.ConfigUint(xmlElement, "LockTimeout", ref value, compulsory)) { envConfig.LockTimeout = value; } if (Configuration.ConfigUint(xmlElement, "MaxTransactions", ref value, compulsory)) { envConfig.MaxTransactions = value; } Configuration.ConfigBool(xmlElement, "NoBuffer", ref envConfig.NoBuffer, compulsory); Configuration.ConfigBool(xmlElement, "NoLocking", ref envConfig.NoLocking, compulsory); Configuration.ConfigBool(xmlElement, "NoMMap", ref envConfig.NoMMap, compulsory); Configuration.ConfigBool(xmlElement, "NoLocking", ref envConfig.NoLocking, compulsory); Configuration.ConfigBool(xmlElement, "NoPanic", ref envConfig.NoPanic, compulsory); Configuration.ConfigBool(xmlElement, "Overwrite", ref envConfig.Overwrite, compulsory); Configuration.ConfigBool(xmlElement, "Private", ref envConfig.Private, compulsory); Configuration.ConfigBool(xmlElement, "Register", ref envConfig.Register, compulsory); Configuration.ConfigBool(xmlElement, "RunFatalRecovery", ref envConfig.RunFatalRecovery, compulsory); Configuration.ConfigBool(xmlElement, "RunRecovery", ref envConfig.RunRecovery, compulsory); Configuration.ConfigBool(xmlElement, "SystemMemory", ref envConfig.SystemMemory, compulsory); Configuration.ConfigString(xmlElement, "TempDir", ref envConfig.TempDir, compulsory); Configuration.ConfigBool(xmlElement, "TimeNotGranted", ref envConfig.TimeNotGranted, compulsory); Configuration.ConfigBool(xmlElement, "TxnNoSync", ref envConfig.TxnNoSync, compulsory); Configuration.ConfigBool(xmlElement, "TxnNoWait", ref envConfig.TxnNoWait, compulsory); Configuration.ConfigBool(xmlElement, "TxnSnapshot", ref envConfig.TxnSnapshot, compulsory); if (Configuration.ConfigDateTime(xmlElement, "TxnTimestamp", ref time, compulsory)) { envConfig.TxnTimestamp = time; } Configuration.ConfigBool(xmlElement, "TxnWriteNoSync", ref envConfig.TxnWriteNoSync, compulsory); Configuration.ConfigBool(xmlElement, "UseLocking", ref envConfig.UseLocking, compulsory); Configuration.ConfigBool(xmlElement, "UseLogging", ref envConfig.UseLogging, compulsory); Configuration.ConfigBool(xmlElement, "UseMPool", ref envConfig.UseMPool, compulsory); Configuration.ConfigBool(xmlElement, "UseMVCC", ref envConfig.UseMVCC, compulsory); Configuration.ConfigBool(xmlElement, "UseReplication", ref envConfig.UseReplication, compulsory); Configuration.ConfigBool(xmlElement, "UseTxns", ref envConfig.UseTxns, compulsory); envConfig.Verbosity = new VerboseMessages(); Configuration.ConfigVerboseMessages(xmlElement, "Verbosity", ref envConfig.Verbosity, compulsory); Configuration.ConfigBool(xmlElement, "YieldCPU", ref envConfig.YieldCPU, compulsory); }
public static void Config(XmlElement xmlElement, ref ReplicationConfig cfg, bool compulsory) { uint uintValue = new uint(); if (Configuration.ConfigUint(xmlElement, "AckTimeout", ref uintValue, compulsory)) { cfg.AckTimeout = uintValue; } Configuration.ConfigBool(xmlElement, "BulkTransfer", ref cfg.BulkTransfer, compulsory); if (Configuration.ConfigUint(xmlElement, "CheckpointDelay", ref uintValue, compulsory)) { cfg.CheckpointDelay = uintValue; } if (Configuration.ConfigUint(xmlElement, "ConnectionRetry", ref uintValue, compulsory)) { cfg.ConnectionRetry = uintValue; } Configuration.ConfigBool(xmlElement, "DelayClientSync", ref cfg.DelayClientSync, compulsory); if (Configuration.ConfigUint(xmlElement, "ElectionRetry", ref uintValue, compulsory)) { cfg.ElectionRetry = uintValue; } if (Configuration.ConfigUint(xmlElement, "ElectionTimeout", ref uintValue, compulsory)) { cfg.ElectionTimeout = uintValue; } if (Configuration.ConfigUint(xmlElement, "FullElectionTimeout", ref uintValue, compulsory)) { cfg.FullElectionTimeout = uintValue; } if (Configuration.ConfigUint(xmlElement, "HeartbeatMonitor", ref uintValue, compulsory)) { cfg.HeartbeatMonitor = uintValue; } if (Configuration.ConfigUint(xmlElement, "HeartbeatSend", ref uintValue, compulsory)) { cfg.HeartbeatSend = uintValue; } if (Configuration.ConfigUint(xmlElement, "LeaseTimeout", ref uintValue, compulsory)) { cfg.LeaseTimeout = uintValue; } Configuration.ConfigBool(xmlElement, "AutoInit", ref cfg.AutoInit, compulsory); Configuration.ConfigBool(xmlElement, "NoBlocking", ref cfg.NoBlocking, compulsory); if (Configuration.ConfigUint(xmlElement, "Priority", ref uintValue, compulsory)) { cfg.Priority = uintValue; } Configuration.ConfigAckPolicy(xmlElement, "RepMgrAckPolicy", ref cfg.RepMgrAckPolicy, compulsory); DbSiteConfig siteConfig = new DbSiteConfig(); siteConfig.LocalSite = true; Configuration.ConfigReplicationHostAddress(xmlElement, "RepMgrLocalSite", ref siteConfig, compulsory); cfg.RepmgrSitesConfig.Add(siteConfig); Configuration.ConfigBool(xmlElement, "Strict2Site", ref cfg.Strict2Site, compulsory); Configuration.ConfigBool(xmlElement, "UseMasterLeases", ref cfg.UseMasterLeases, compulsory); }