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-2009 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 /** TODO */ 21 public String getFileName() { 22 return file_name; 23 } 24 25 private int st_pagesize; 26 /** TODO */ 27 public int getPageSize() { 28 return st_pagesize; 29 } 30 31 private int st_map; 32 /** TODO */ 33 public int getMap() { 34 return st_map; 35 } 36 37 private long st_cache_hit; 38 /** TODO */ 39 public long getCacheHit() { 40 return st_cache_hit; 41 } 42 43 private long st_cache_miss; 44 /** TODO */ 45 public long getCacheMiss() { 46 return st_cache_miss; 47 } 48 49 private long st_page_create; 50 /** TODO */ 51 public long getPageCreate() { 52 return st_page_create; 53 } 54 55 private long st_page_in; 56 /** TODO */ 57 public long getPageIn() { 58 return st_page_in; 59 } 60 61 private long st_page_out; 62 /** TODO */ 63 public long getPageOut() { 64 return st_page_out; 65 } 66 67 /** 68 For convenience, the CacheFileStats class has a toString method 69 that lists all the data fields. 70 */ 71 public String toString() { 72 return "CacheFileStats:" 73 + "\n file_name=" + file_name 74 + "\n st_pagesize=" + st_pagesize 75 + "\n st_map=" + st_map 76 + "\n st_cache_hit=" + st_cache_hit 77 + "\n st_cache_miss=" + st_cache_miss 78 + "\n st_page_create=" + st_page_create 79 + "\n st_page_in=" + st_page_in 80 + "\n st_page_out=" + st_page_out 81 ; 82 } 83} 84