2 * Automatically built by dist/s_java_stat.
3 * Only the javadoc comments can be edited.
5 * See the file LICENSE for redistribution information.
7 * Copyright (c) 2002, 2012 Oracle and/or its affiliates. All rights reserved.
10 package com.sleepycat.db;
13 Statistics for a file in the cache.
15 public class CacheFileStats {
16 // no public constructor
17 /* package */ CacheFileStats() {}
19 private int st_pagesize;
23 public int getPageSize() {
29 Requested pages mapped into the process' address space.
35 private long st_cache_hit;
37 Requested pages found in the cache.
39 public long getCacheHit() {
43 private long st_cache_miss;
45 Requested pages not found in the cache.
47 public long getCacheMiss() {
51 private long st_page_create;
53 Pages created in the cache.
55 public long getPageCreate() {
56 return st_page_create;
59 private long st_page_in;
61 Pages read into the cache.
63 public long getPageIn() {
67 private long st_page_out;
69 Pages written from the cache to the backing file.
71 public long getPageOut() {
75 private long st_backup_spins;
77 public long getBackupSpins() {
78 return st_backup_spins;
81 private String file_name;
85 public String getFileName() {
90 For convenience, the CacheFileStats class has a toString method
91 that lists all the data fields.
93 public String toString() {
94 return "CacheFileStats:"
95 + "\n st_pagesize=" + st_pagesize
96 + "\n st_map=" + st_map
97 + "\n st_cache_hit=" + st_cache_hit
98 + "\n st_cache_miss=" + st_cache_miss
99 + "\n st_page_create=" + st_page_create
100 + "\n st_page_in=" + st_page_in
101 + "\n st_page_out=" + st_page_out
102 + "\n st_backup_spins=" + st_backup_spins
103 + "\n file_name=" + file_name