1 package org.apache.commons.jcs3.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 long hitCountRam;
45
46
47 private final long hitCountAux;
48
49
50 private final long missCountNotFound;
51
52
53 private final long 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(final String cacheName, final int cacheSize, final String cacheStatus,
74 final String cacheStatistics, final long hitCountRam, final long hitCountAux,
75 final long missCountNotFound, final long missCountExpired, final long byteCount)
76 {
77 this.cacheName = cacheName;
78 this.cacheSize = cacheSize;
79 this.cacheStatus = cacheStatus;
80 this.cacheStatistics = cacheStatistics;
81 this.hitCountRam = hitCountRam;
82 this.hitCountAux = hitCountAux;
83 this.missCountNotFound = missCountNotFound;
84 this.missCountExpired = missCountExpired;
85 this.byteCount = byteCount;
86 }
87
88
89
90
91 public String getCacheName()
92 {
93 return this.cacheName;
94 }
95
96
97
98
99 public int getCacheSize()
100 {
101 return this.cacheSize;
102 }
103
104
105
106
107 public String getCacheStatus()
108 {
109 return this.cacheStatus;
110 }
111
112
113
114
115
116
117 public String getCacheStatistics()
118 {
119 return this.cacheStatistics;
120 }
121
122
123
124
125 public long getHitCountRam()
126 {
127 return hitCountRam;
128 }
129
130
131
132
133 public long getHitCountAux()
134 {
135 return hitCountAux;
136 }
137
138
139
140
141 public long getMissCountNotFound()
142 {
143 return missCountNotFound;
144 }
145
146
147
148
149 public long getMissCountExpired()
150 {
151 return missCountExpired;
152 }
153
154
155
156
157 public long getByteCount()
158 {
159 return this.byteCount;
160 }
161
162
163
164
165 @Override
166 public String toString()
167 {
168 final StringBuilder buf = new StringBuilder();
169 buf.append( "\nCacheRegionInfo " );
170 if ( cacheName != null )
171 {
172 buf.append( "\n CacheName [" + cacheName + "]" );
173 buf.append( "\n Status [" + cacheStatus + "]" );
174 }
175 buf.append( "\n ByteCount [" + getByteCount() + "]" );
176
177 return buf.toString();
178 }
179 }