1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2009 Oracle. All rights reserved. 5 * 6 */ 7using System; 8using System.Collections.Generic; 9using System.Text; 10 11namespace BerkeleyDB { 12 /// <summary> 13 /// A class to represent information about the Berkeley DB cache 14 /// </summary> 15 public class CacheInfo { 16 /// <summary> 17 /// The number of gigabytes in the cache 18 /// </summary> 19 public uint Gigabytes; 20 /// <summary> 21 /// The number of bytes in the cache 22 /// </summary> 23 public uint Bytes; 24 /// <summary> 25 /// The number of caches 26 /// </summary> 27 public int NCaches; 28 29 /// <summary> 30 /// Create a new CacheInfo object. The size of the cache is set to 31 /// gbytes gigabytes plus bytes and spread over numCaches separate 32 /// caches. 33 /// </summary> 34 /// <param name="gbytes">The number of gigabytes in the cache</param> 35 /// <param name="bytes">The number of bytes in the cache</param> 36 /// <param name="numCaches">The number of caches</param> 37 public CacheInfo(uint gbytes, uint bytes, int numCaches) { 38 Gigabytes = gbytes; 39 Bytes = bytes; 40 NCaches = numCaches; 41 } 42 } 43} 44