summaryrefslogtreecommitdiff
path: root/csharp/CacheInfo.cs
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 16:00:08 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 16:00:08 -0700
commit7edf6e8ac0df452d4af7a15da08609821b0b3c0f (patch)
tree1cf0f01d9b6574972173e3cd40b62e4ebeaaaaae /csharp/CacheInfo.cs
downloaddb4-7edf6e8ac0df452d4af7a15da08609821b0b3c0f.tar.gz
db4-7edf6e8ac0df452d4af7a15da08609821b0b3c0f.tar.bz2
db4-7edf6e8ac0df452d4af7a15da08609821b0b3c0f.zip
Imported Upstream version 4.8.30.NCupstream/4.8.30.NC
Diffstat (limited to 'csharp/CacheInfo.cs')
-rw-r--r--csharp/CacheInfo.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/csharp/CacheInfo.cs b/csharp/CacheInfo.cs
new file mode 100644
index 00000000..b5f4283b
--- /dev/null
+++ b/csharp/CacheInfo.cs
@@ -0,0 +1,43 @@
+/*-
+ * 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 {
+ /// <summary>
+ /// A class to represent information about the Berkeley DB cache
+ /// </summary>
+ public class CacheInfo {
+ /// <summary>
+ /// The number of gigabytes in the cache
+ /// </summary>
+ public uint Gigabytes;
+ /// <summary>
+ /// The number of bytes in the cache
+ /// </summary>
+ public uint Bytes;
+ /// <summary>
+ /// The number of caches
+ /// </summary>
+ public int NCaches;
+
+ /// <summary>
+ /// Create a new CacheInfo object. The size of the cache is set to
+ /// gbytes gigabytes plus bytes and spread over numCaches separate
+ /// caches.
+ /// </summary>
+ /// <param name="gbytes">The number of gigabytes in the cache</param>
+ /// <param name="bytes">The number of bytes in the cache</param>
+ /// <param name="numCaches">The number of caches</param>
+ public CacheInfo(uint gbytes, uint bytes, int numCaches) {
+ Gigabytes = gbytes;
+ Bytes = bytes;
+ NCaches = numCaches;
+ }
+ }
+}