/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2009 Oracle. All rights reserved.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace BerkeleyDB {
///
/// Statistical information about a QueueDatabase
///
public class QueueStats {
private Internal.QueueStatStruct st;
internal QueueStats(Internal.QueueStatStruct stats) {
st = stats;
}
///
/// Data pages.
///
public uint DataPages { get { return st.qs_pages; } }
///
/// Bytes free in data pages.
///
public uint DataPagesBytesFree { get { return st.qs_pgfree; } }
///
/// First not deleted record.
///
public uint FirstRecordNumber { get { return st.qs_first_recno; } }
///
/// Magic number.
///
public uint MagicNumber { get { return st.qs_magic; } }
///
/// Metadata flags.
///
public uint MetadataFlags { get { return st.qs_metaflags; } }
///
/// Next available record number.
///
public uint NextRecordNumber { get { return st.qs_cur_recno; } }
///
/// Number of data items.
///
public uint nData { get { return st.qs_ndata; } }
///
/// Number of unique keys.
///
public uint nKeys { get { return st.qs_nkeys; } }
///
/// Page size.
///
public uint PageSize { get { return st.qs_pagesize; } }
///
/// Pages per extent.
///
public uint PagesPerExtent { get { return st.qs_extentsize; } }
///
/// Fixed-length record length.
///
public uint RecordLength { get { return st.qs_re_len; } }
///
/// Fixed-length record pad.
///
public uint RecordPadByte { get { return st.qs_re_pad; } }
///
/// Version number.
///
public uint Version { get { return st.qs_version; } }
}
}