1/*- 2 * Automatically built by dist/s_java_stat. 3 * Only the javadoc comments can be edited. 4 * 5 * See the file LICENSE for redistribution information. 6 * 7 * Copyright (c) 2002,2008 Oracle. All rights reserved. 8 */ 9 10package com.sleepycat.db; 11 12/** 13Statistics for a file in the cache. 14*/ 15public class CacheFileStats { 16 // no public constructor 17 /* package */ CacheFileStats() {} 18 19 private String file_name; 20 /** 21 The name of the file. 22 */ 23 public String getFileName() { 24 return file_name; 25 } 26 27 private int st_pagesize; 28 /** 29 Page size in bytes. 30 */ 31 public int getPageSize() { 32 return st_pagesize; 33 } 34 35 private int st_map; 36 /** 37 Requested pages mapped into the process' address space. 38 */ 39 public int getMap() { 40 return st_map; 41 } 42 43 private int st_cache_hit; 44 /** 45 Requested pages found in the cache. 46 */ 47 public int getCacheHit() { 48 return st_cache_hit; 49 } 50 51 private int st_cache_miss; 52 /** 53 Requested pages not found in the cache. 54 */ 55 public int getCacheMiss() { 56 return st_cache_miss; 57 } 58 59 private int st_page_create; 60 /** 61 Pages created in the cache. 62 */ 63 public int getPageCreate() { 64 return st_page_create; 65 } 66 67 private int st_page_in; 68 /** 69 Pages read into the cache. 70 */ 71 public int getPageIn() { 72 return st_page_in; 73 } 74 75 private int st_page_out; 76 /** 77 Pages written from the cache to the backing file. 78 */ 79 public int getPageOut() { 80 return st_page_out; 81 } 82 83 /** 84 For convenience, the CacheFileStats class has a toString method 85 that lists all the data fields. 86 */ 87 public String toString() { 88 return "CacheFileStats:" 89 + "\n file_name=" + file_name 90 + "\n st_pagesize=" + st_pagesize 91 + "\n st_map=" + st_map 92 + "\n st_cache_hit=" + st_cache_hit 93 + "\n st_cache_miss=" + st_cache_miss 94 + "\n st_page_create=" + st_page_create 95 + "\n st_page_in=" + st_page_in 96 + "\n st_page_out=" + st_page_out 97 ; 98 } 99} 100