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