示例#1
0
//-----------------------------------------------------------------------------
// getDbStats
//-----------------------------------------------------------------------------

        /// <summary>
        /// Retrieve statistics for a particular database.
        /// </summary>
        /// <param name="uiDatabaseNum">
        /// Number of the database for which statistics are to be returned.
        /// This number should be between 0 and N - 1, where N = Number of
        /// databases for which we have statistics.
        /// The number of databases may be determined by calling the
        /// <see cref="getGeneralStats"/> method.
        /// </param>
        /// <param name="dbStats">
        /// A <see cref="CS_XFLM_DB_STATS"/> object to return the requested
        /// database statistics in.  If null, an object will be allocated.
        /// </param>
        /// <returns>
        /// A <see cref="CS_XFLM_DB_STATS"/> object is returned which
        /// holds statistics for the specified database.
        /// </returns>
        public CS_XFLM_DB_STATS getDbStats(
            uint uiDatabaseNum,
            CS_XFLM_DB_STATS dbStats)
        {
            RCODE rc;

            if (dbStats == null)
            {
                dbStats = new CS_XFLM_DB_STATS();
            }

            if ((rc = xflaim_DbSystemStats_getDbStats(m_pStats, uiDatabaseNum,
                                                      dbStats)) != 0)
            {
                throw new XFlaimException(rc);
            }
            return(dbStats);
        }
        //-----------------------------------------------------------------------------
        // getDbStats
        //-----------------------------------------------------------------------------
        /// <summary>
        /// Retrieve statistics for a particular database.
        /// </summary>
        /// <param name="uiDatabaseNum">
        /// Number of the database for which statistics are to be returned.
        /// This number should be between 0 and N - 1, where N = Number of
        /// databases for which we have statistics.
        /// The number of databases may be determined by calling the
        /// <see cref="getGeneralStats"/> method.
        /// </param>
        /// <param name="dbStats">
        /// A <see cref="CS_XFLM_DB_STATS"/> object to return the requested
        /// database statistics in.  If null, an object will be allocated.
        /// </param>
        /// <returns>
        /// A <see cref="CS_XFLM_DB_STATS"/> object is returned which
        /// holds statistics for the specified database.
        /// </returns>
        public CS_XFLM_DB_STATS getDbStats(
			uint					uiDatabaseNum,
			CS_XFLM_DB_STATS	dbStats)
        {
            RCODE	rc;

            if (dbStats == null)
            {
                dbStats = new CS_XFLM_DB_STATS();
            }

            if ((rc = xflaim_DbSystemStats_getDbStats( m_pStats, uiDatabaseNum,
                dbStats)) != 0)
            {
                throw new XFlaimException( rc);
            }
            return( dbStats);
        }
示例#3
0
 private static extern RCODE xflaim_DbSystemStats_getDbStats(
     IntPtr pStats,
     uint uiDatabaseNum,
     [Out]
     CS_XFLM_DB_STATS pDbStats);