001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.jba;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
023:
024: /**
025: *
026: */
027: @XmlAccessorType(XmlAccessType.FIELD)
028: @XmlType(name="",propOrder={"minCapacity","maxCapacity","removerPeriod","maxBeanLife","overagerPeriod","maxBeanAge","resizerPeriod","maxCacheMissPeriod","minCacheMissPeriod","cacheLoadFactor","flushEnabled"})
029: @XmlRootElement(name="cache-policy-conf")
030: public class CachePolicyConf {
031:
032: @XmlElement(name="min-capacity")
033: protected String minCapacity;
034: @XmlElement(name="max-capacity")
035: protected String maxCapacity;
036: @XmlElement(name="remover-period")
037: protected String removerPeriod;
038: @XmlElement(name="max-bean-life")
039: protected String maxBeanLife;
040: @XmlElement(name="overager-period")
041: protected String overagerPeriod;
042: @XmlElement(name="max-bean-age")
043: protected String maxBeanAge;
044: @XmlElement(name="resizer-period")
045: protected String resizerPeriod;
046: @XmlElement(name="max-cache-miss-period")
047: protected String maxCacheMissPeriod;
048: @XmlElement(name="min-cache-miss-period")
049: protected String minCacheMissPeriod;
050: @XmlElement(name="cache-load-factor")
051: protected String cacheLoadFactor;
052: @XmlElement(name="flush-enabled")
053: protected String flushEnabled;
054:
055: /**
056: * Gets the value of the minCapacity property.
057: *
058: * @return
059: * possible object is
060: * {@link String }
061: *
062: */
063: public String getMinCapacity() {
064: return minCapacity;
065: }
066:
067: /**
068: * Sets the value of the minCapacity property.
069: *
070: * @param value
071: * allowed object is
072: * {@link String }
073: *
074: */
075: public void setMinCapacity(String value) {
076: this .minCapacity = value;
077: }
078:
079: /**
080: * Gets the value of the maxCapacity property.
081: *
082: * @return
083: * possible object is
084: * {@link String }
085: *
086: */
087: public String getMaxCapacity() {
088: return maxCapacity;
089: }
090:
091: /**
092: * Sets the value of the maxCapacity property.
093: *
094: * @param value
095: * allowed object is
096: * {@link String }
097: *
098: */
099: public void setMaxCapacity(String value) {
100: this .maxCapacity = value;
101: }
102:
103: /**
104: * Gets the value of the removerPeriod property.
105: *
106: * @return
107: * possible object is
108: * {@link String }
109: *
110: */
111: public String getRemoverPeriod() {
112: return removerPeriod;
113: }
114:
115: /**
116: * Sets the value of the removerPeriod property.
117: *
118: * @param value
119: * allowed object is
120: * {@link String }
121: *
122: */
123: public void setRemoverPeriod(String value) {
124: this .removerPeriod = value;
125: }
126:
127: /**
128: * Gets the value of the maxBeanLife property.
129: *
130: * @return
131: * possible object is
132: * {@link String }
133: *
134: */
135: public String getMaxBeanLife() {
136: return maxBeanLife;
137: }
138:
139: /**
140: * Sets the value of the maxBeanLife property.
141: *
142: * @param value
143: * allowed object is
144: * {@link String }
145: *
146: */
147: public void setMaxBeanLife(String value) {
148: this .maxBeanLife = value;
149: }
150:
151: /**
152: * Gets the value of the overagerPeriod property.
153: *
154: * @return
155: * possible object is
156: * {@link String }
157: *
158: */
159: public String getOveragerPeriod() {
160: return overagerPeriod;
161: }
162:
163: /**
164: * Sets the value of the overagerPeriod property.
165: *
166: * @param value
167: * allowed object is
168: * {@link String }
169: *
170: */
171: public void setOveragerPeriod(String value) {
172: this .overagerPeriod = value;
173: }
174:
175: /**
176: * Gets the value of the maxBeanAge property.
177: *
178: * @return
179: * possible object is
180: * {@link String }
181: *
182: */
183: public String getMaxBeanAge() {
184: return maxBeanAge;
185: }
186:
187: /**
188: * Sets the value of the maxBeanAge property.
189: *
190: * @param value
191: * allowed object is
192: * {@link String }
193: *
194: */
195: public void setMaxBeanAge(String value) {
196: this .maxBeanAge = value;
197: }
198:
199: /**
200: * Gets the value of the resizerPeriod property.
201: *
202: * @return
203: * possible object is
204: * {@link String }
205: *
206: */
207: public String getResizerPeriod() {
208: return resizerPeriod;
209: }
210:
211: /**
212: * Sets the value of the resizerPeriod property.
213: *
214: * @param value
215: * allowed object is
216: * {@link String }
217: *
218: */
219: public void setResizerPeriod(String value) {
220: this .resizerPeriod = value;
221: }
222:
223: /**
224: * Gets the value of the maxCacheMissPeriod property.
225: *
226: * @return
227: * possible object is
228: * {@link String }
229: *
230: */
231: public String getMaxCacheMissPeriod() {
232: return maxCacheMissPeriod;
233: }
234:
235: /**
236: * Sets the value of the maxCacheMissPeriod property.
237: *
238: * @param value
239: * allowed object is
240: * {@link String }
241: *
242: */
243: public void setMaxCacheMissPeriod(String value) {
244: this .maxCacheMissPeriod = value;
245: }
246:
247: /**
248: * Gets the value of the minCacheMissPeriod property.
249: *
250: * @return
251: * possible object is
252: * {@link String }
253: *
254: */
255: public String getMinCacheMissPeriod() {
256: return minCacheMissPeriod;
257: }
258:
259: /**
260: * Sets the value of the minCacheMissPeriod property.
261: *
262: * @param value
263: * allowed object is
264: * {@link String }
265: *
266: */
267: public void setMinCacheMissPeriod(String value) {
268: this .minCacheMissPeriod = value;
269: }
270:
271: /**
272: * Gets the value of the cacheLoadFactor property.
273: *
274: * @return
275: * possible object is
276: * {@link String }
277: *
278: */
279: public String getCacheLoadFactor() {
280: return cacheLoadFactor;
281: }
282:
283: /**
284: * Sets the value of the cacheLoadFactor property.
285: *
286: * @param value
287: * allowed object is
288: * {@link String }
289: *
290: */
291: public void setCacheLoadFactor(String value) {
292: this .cacheLoadFactor = value;
293: }
294:
295: /**
296: * Gets the value of the flushEnabled property.
297: *
298: * @return
299: * possible object is
300: * {@link String }
301: *
302: */
303: public String getFlushEnabled() {
304: return flushEnabled;
305: }
306:
307: /**
308: * Sets the value of the flushEnabled property.
309: *
310: * @param value
311: * allowed object is
312: * {@link String }
313: *
314: */
315: public void setFlushEnabled(String value) {
316: this.flushEnabled = value;
317: }
318:
319: }
|