internal static VerboseMessages FromFlags(uint flags)
        {
            VerboseMessages ret = new VerboseMessages();

            ret.Backup                  = ((flags & DbConstants.DB_VERB_BACKUP) != 0);
            ret.Deadlock                = ((flags & DbConstants.DB_VERB_DEADLOCK) != 0);
            ret.FileOps                 = ((flags & DbConstants.DB_VERB_FILEOPS) != 0);
            ret.AllFileOps              = ((flags & DbConstants.DB_VERB_FILEOPS_ALL) != 0);
            ret.Recovery                = ((flags & DbConstants.DB_VERB_RECOVERY) != 0);
            ret.Register                = ((flags & DbConstants.DB_VERB_REGISTER) != 0);
            ret.Replication             = ((flags & DbConstants.DB_VERB_REPLICATION) != 0);
            ret.RepMgrConnectionFailure = ((flags & DbConstants.DB_VERB_REPMGR_CONNFAIL) != 0);
            ret.RepMgrMisc              = ((flags & DbConstants.DB_VERB_REPMGR_MISC) != 0);
            ret.RepMgrSSLAll            = ((flags & DbConstants.DB_VERB_REPMGR_SSL_ALL) != 0);
            ret.RepMgrSSLConnection     = ((flags & DbConstants.DB_VERB_REPMGR_SSL_CONN) != 0);
            ret.RepMgrSSLIO             = ((flags & DbConstants.DB_VERB_REPMGR_SSL_IO) != 0);
            ret.ReplicationElection     = ((flags & DbConstants.DB_VERB_REP_ELECT) != 0);
            ret.ReplicationLease        = ((flags & DbConstants.DB_VERB_REP_LEASE) != 0);
            ret.ReplicationMisc         = ((flags & DbConstants.DB_VERB_REP_MISC) != 0);
            ret.ReplicationMessages     = ((flags & DbConstants.DB_VERB_REP_MSGS) != 0);
            ret.ReplicationSync         = ((flags & DbConstants.DB_VERB_REP_SYNC) != 0);
            ret.ReplicationSystemInfo   = ((flags & DbConstants.DB_VERB_REP_SYSTEM) != 0);
            ret.ReplicationTest         = ((flags & DbConstants.DB_VERB_REP_TEST) != 0);
            ret.WaitsForTable           = ((flags & DbConstants.DB_VERB_WAITSFOR) != 0);

            return(ret);
        }
Example #2
0
        internal static VerboseMessages FromFlags(uint flags)
        {
            VerboseMessages ret = new VerboseMessages();

            ret.Deadlock = ((flags & DbConstants.DB_VERB_DEADLOCK) != 0);
            ret.FileOps = ((flags & DbConstants.DB_VERB_FILEOPS) != 0);
            ret.AllFileOps = ((flags & DbConstants.DB_VERB_FILEOPS_ALL) != 0);
            ret.Recovery = ((flags & DbConstants.DB_VERB_RECOVERY) != 0);
            ret.Register = ((flags & DbConstants.DB_VERB_REGISTER) != 0);
            ret.Replication = ((flags & DbConstants.DB_VERB_REPLICATION) != 0);
            ret.RepMgrConnectionFailure = ((flags & DbConstants.DB_VERB_REPMGR_CONNFAIL) != 0);
            ret.RepMgrMisc = ((flags & DbConstants.DB_VERB_REPMGR_MISC) != 0);
            ret.ReplicationElection = ((flags & DbConstants.DB_VERB_REP_ELECT) != 0);
            ret.ReplicationLease = ((flags & DbConstants.DB_VERB_REP_LEASE) != 0);
            ret.ReplicationMisc = ((flags & DbConstants.DB_VERB_REP_MISC) != 0);
            ret.ReplicationMessages = ((flags & DbConstants.DB_VERB_REP_MSGS) != 0);
            ret.ReplicationSync = ((flags & DbConstants.DB_VERB_REP_SYNC) != 0);
            ret.ReplicationTest = ((flags & DbConstants.DB_VERB_REP_TEST) != 0);
            ret.WaitsForTable = ((flags & DbConstants.DB_VERB_WAITSFOR) != 0);

            return ret;
        }
Example #3
0
        public static bool ConfigVerboseMessages(
		    XmlElement xmlElem, string name, 
		    ref VerboseMessages verbose, bool compulsory)
        {
            XmlNode xmlNode = XMLReader.GetNode(xmlElem,
                name);
            if (xmlNode == null && compulsory == false)
                return false;
            else if (xmlNode == null && compulsory == true)
                throw new ConfigNotFoundException(name);

            ConfigBool((XmlElement)xmlNode, "AllFileOps",
                ref verbose.AllFileOps, compulsory);
            ConfigBool((XmlElement)xmlNode, "Deadlock",
                ref verbose.Deadlock, compulsory);
            ConfigBool((XmlElement)xmlNode, "FileOps",
                ref verbose.FileOps, compulsory);
            ConfigBool((XmlElement)xmlNode, "Recovery",
                ref verbose.Recovery, compulsory);
            ConfigBool((XmlElement)xmlNode, "Register",
                ref verbose.Register, compulsory);
            ConfigBool((XmlElement)xmlNode, "Replication",
                ref verbose.Replication, compulsory);
            ConfigBool((XmlElement)xmlNode, "ReplicationElection",
                ref verbose.ReplicationElection, compulsory);
            ConfigBool((XmlElement)xmlNode, "ReplicationLease",
                ref verbose.ReplicationLease, compulsory);
            ConfigBool((XmlElement)xmlNode, "ReplicationMessages",
                ref verbose.ReplicationMessages, compulsory);
            ConfigBool((XmlElement)xmlNode, "ReplicationMisc",
                ref verbose.ReplicationMisc, compulsory);
            ConfigBool((XmlElement)xmlNode, "ReplicationSync",
                ref verbose.ReplicationSync, compulsory);
            ConfigBool((XmlElement)xmlNode, "RepMgrConnectionFailure",
                ref verbose.RepMgrConnectionFailure, compulsory);
            ConfigBool((XmlElement)xmlNode, "RepMgrMisc",
                ref verbose.RepMgrMisc, compulsory);
            ConfigBool((XmlElement)xmlNode, "WaitsForTable",
                ref verbose.WaitsForTable, compulsory);
            return true;
        }