1 package org.apache.commons.jcs.admin;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.beans.ConstructorProperties;
23
24
25
26
27
28
29 public class CacheRegionInfo
30 {
31
32 private final String cacheName;
33
34
35 private final int cacheSize;
36
37
38 private final String cacheStatus;
39
40
41 private final String cacheStatistics;
42
43
44 private final int hitCountRam;
45
46
47 private final int hitCountAux;
48
49
50 private final int missCountNotFound;
51
52
53 private final int missCountExpired;
54
55
56 private final long byteCount;
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71 @ConstructorProperties({"cacheName", "cacheSize", "cacheStatus", "cacheStatistics",
72 "hitCountRam", "hitCountAux", "missCountNotFound", "missCountExpired", "byteCount"})
73 public CacheRegionInfo(String cacheName, int cacheSize, String cacheStatus,
74 String cacheStatistics, int hitCountRam, int hitCountAux,
75 int missCountNotFound, int missCountExpired, long byteCount)
76 {
77 super();
78 this.cacheName = cacheName;
79 this.cacheSize = cacheSize;
80 this.cacheStatus = cacheStatus;
81 this.cacheStatistics = cacheStatistics;
82 this.hitCountRam = hitCountRam;
83 this.hitCountAux = hitCountAux;
84 this.missCountNotFound = missCountNotFound;
85 this.missCountExpired = missCountExpired;
86 this.byteCount = byteCount;
87 }
88
89
90
91
92 public String getCacheName()
93 {
94 return this.cacheName;
95 }
96
97
98
99
100 public int getCacheSize()
101 {
102 return this.cacheSize;
103 }
104
105
106
107
108 public String getCacheStatus()
109 {
110 return this.cacheStatus;
111 }
112
113
114
115
116
117
118 public String getCacheStatistics()
119 {
120 return this.cacheStatistics;
121 }
122
123
124
125
126 public int getHitCountRam()
127 {
128 return hitCountRam;
129 }
130
131
132
133
134 public int getHitCountAux()
135 {
136 return hitCountAux;
137 }
138
139
140
141
142 public int getMissCountNotFound()
143 {
144 return missCountNotFound;
145 }
146
147
148
149
150 public int getMissCountExpired()
151 {
152 return missCountExpired;
153 }
154
155
156
157
158 public long getByteCount()
159 {
160 return this.byteCount;
161 }
162
163
164
165
166 @Override
167 public String toString()
168 {
169 StringBuilder buf = new StringBuilder();
170 buf.append( "\nCacheRegionInfo " );
171 if ( cacheName != null )
172 {
173 buf.append( "\n CacheName [" + cacheName + "]" );
174 buf.append( "\n Status [" + cacheStatus + "]" );
175 }
176 buf.append( "\n ByteCount [" + getByteCount() + "]" );
177
178 return buf.toString();
179 }
180 }