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 SecondaryQueueDatabaseConfig secQueueDBConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); SecondaryDatabaseConfig secConfig = secQueueDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secConfig, compulsory); // Configure specific fields/properties of Queue database Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secQueueDBConfig.Creation, compulsory); if (Configuration.ConfigUint(xmlElement, "Length", ref uintValue, compulsory)) { secQueueDBConfig.Length = uintValue; } if (Configuration.ConfigInt(xmlElement, "PadByte", ref intValue, compulsory)) { secQueueDBConfig.PadByte = intValue; } if (Configuration.ConfigUint(xmlElement, "ExtentSize", ref uintValue, compulsory)) { secQueueDBConfig.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 MPoolConfig mpoolConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); Configuration.ConfigCacheInfo(xmlElement, "CacheSize", ref mpoolConfig.CacheSize, compulsory); Configuration.ConfigCacheInfo(xmlElement, "MaxCacheSize", ref mpoolConfig.MaxCacheSize, compulsory); if (Configuration.ConfigInt(xmlElement, "MaxOpenFiles", ref intValue, compulsory)) { mpoolConfig.MaxOpenFiles = intValue; } Configuration.ConfigMaxSequentialWrites( xmlElement, "MaxSequentialWrites", mpoolConfig, compulsory); if (Configuration.ConfigUint(xmlElement, "MMapSize", ref uintValue, compulsory)) { mpoolConfig.MMapSize = uintValue; } }
public static void Config(XmlElement xmlElement, ref SequenceConfig seqConfig, bool compulsory) { int intValue = new int(); bool boolValue = new bool(); long longValue = new long(); if (Configuration.ConfigInt(xmlElement, "CacheSize", ref intValue, compulsory)) { seqConfig.CacheSize = intValue; } 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 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); }