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.wls;
017:
018: import java.math.BigInteger;
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for pool complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="pool">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="max-beans-in-free-pool" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
039: * <element name="initial-beans-in-free-pool" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
040: * <element name="idle-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
041: * </sequence>
042: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
043: * </restriction>
044: * </complexContent>
045: * </complexType>
046: * </pre>
047: *
048: *
049: */
050: @XmlAccessorType(XmlAccessType.FIELD)
051: @XmlType(name="pool",propOrder={"maxBeansInFreePool","initialBeansInFreePool","idleTimeoutSeconds"})
052: public class Pool {
053:
054: @XmlElement(name="max-beans-in-free-pool")
055: protected BigInteger maxBeansInFreePool;
056: @XmlElement(name="initial-beans-in-free-pool")
057: protected BigInteger initialBeansInFreePool;
058: @XmlElement(name="idle-timeout-seconds")
059: protected BigInteger idleTimeoutSeconds;
060: @XmlAttribute
061: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
062: @XmlID
063: protected String id;
064:
065: /**
066: * Gets the value of the maxBeansInFreePool property.
067: *
068: * @return
069: * possible object is
070: * {@link BigInteger }
071: *
072: */
073: public BigInteger getMaxBeansInFreePool() {
074: return maxBeansInFreePool;
075: }
076:
077: /**
078: * Sets the value of the maxBeansInFreePool property.
079: *
080: * @param value
081: * allowed object is
082: * {@link BigInteger }
083: *
084: */
085: public void setMaxBeansInFreePool(BigInteger value) {
086: this .maxBeansInFreePool = value;
087: }
088:
089: /**
090: * Gets the value of the initialBeansInFreePool property.
091: *
092: * @return
093: * possible object is
094: * {@link BigInteger }
095: *
096: */
097: public BigInteger getInitialBeansInFreePool() {
098: return initialBeansInFreePool;
099: }
100:
101: /**
102: * Sets the value of the initialBeansInFreePool property.
103: *
104: * @param value
105: * allowed object is
106: * {@link BigInteger }
107: *
108: */
109: public void setInitialBeansInFreePool(BigInteger value) {
110: this .initialBeansInFreePool = value;
111: }
112:
113: /**
114: * Gets the value of the idleTimeoutSeconds property.
115: *
116: * @return
117: * possible object is
118: * {@link BigInteger }
119: *
120: */
121: public BigInteger getIdleTimeoutSeconds() {
122: return idleTimeoutSeconds;
123: }
124:
125: /**
126: * Sets the value of the idleTimeoutSeconds property.
127: *
128: * @param value
129: * allowed object is
130: * {@link BigInteger }
131: *
132: */
133: public void setIdleTimeoutSeconds(BigInteger value) {
134: this .idleTimeoutSeconds = value;
135: }
136:
137: /**
138: * Gets the value of the id property.
139: *
140: * @return
141: * possible object is
142: * {@link String }
143: *
144: */
145: public String getId() {
146: return id;
147: }
148:
149: /**
150: * Sets the value of the id property.
151: *
152: * @param value
153: * allowed object is
154: * {@link String }
155: *
156: */
157: public void setId(String value) {
158: this.id = value;
159: }
160:
161: }
|