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 javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlID;
023: import javax.xml.bind.annotation.XmlType;
024: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
025: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
026:
027: /**
028: * <p>Java class for work-manager complex type.
029: *
030: * <p>The following schema fragment specifies the expected content contained within this class.
031: *
032: * <pre>
033: * <complexType name="work-manager">
034: * <complexContent>
035: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036: * <sequence>
037: * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
038: * <choice minOccurs="0">
039: * <element name="response-time-request-class" type="{http://www.bea.com/ns/weblogic/90}response-time-request-class"/>
040: * <element name="fair-share-request-class" type="{http://www.bea.com/ns/weblogic/90}fair-share-request-class"/>
041: * <element name="context-request-class" type="{http://www.bea.com/ns/weblogic/90}context-request-class"/>
042: * <element name="request-class-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
043: * </choice>
044: * <choice minOccurs="0">
045: * <element name="min-threads-constraint" type="{http://www.bea.com/ns/weblogic/90}min-threads-constraint"/>
046: * <element name="min-threads-constraint-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
047: * </choice>
048: * <choice minOccurs="0">
049: * <element name="max-threads-constraint" type="{http://www.bea.com/ns/weblogic/90}max-threads-constraint"/>
050: * <element name="max-threads-constraint-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
051: * </choice>
052: * <choice minOccurs="0">
053: * <element name="capacity" type="{http://www.bea.com/ns/weblogic/90}capacity"/>
054: * <element name="capacity-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
055: * </choice>
056: * <choice minOccurs="0">
057: * <element name="work-manager-shutdown-trigger" type="{http://www.bea.com/ns/weblogic/90}work-manager-shutdown-trigger"/>
058: * <element name="ignore-stuck-threads" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
059: * </choice>
060: * </sequence>
061: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
062: * </restriction>
063: * </complexContent>
064: * </complexType>
065: * </pre>
066: *
067: *
068: */
069: @XmlAccessorType(XmlAccessType.FIELD)
070: @XmlType(name="work-manager",propOrder={"name","responseTimeRequestClass","fairShareRequestClass","contextRequestClass","requestClassName","minThreadsConstraint","minThreadsConstraintName","maxThreadsConstraint","maxThreadsConstraintName","capacity","capacityName","workManagerShutdownTrigger","ignoreStuckThreads"})
071: public class WorkManager {
072:
073: @XmlElement(required=true)
074: protected String name;
075: @XmlElement(name="response-time-request-class")
076: protected ResponseTimeRequestClass responseTimeRequestClass;
077: @XmlElement(name="fair-share-request-class")
078: protected FairShareRequestClass fairShareRequestClass;
079: @XmlElement(name="context-request-class")
080: protected ContextRequestClass contextRequestClass;
081: @XmlElement(name="request-class-name")
082: protected String requestClassName;
083: @XmlElement(name="min-threads-constraint")
084: protected MinThreadsConstraint minThreadsConstraint;
085: @XmlElement(name="min-threads-constraint-name")
086: protected String minThreadsConstraintName;
087: @XmlElement(name="max-threads-constraint")
088: protected MaxThreadsConstraint maxThreadsConstraint;
089: @XmlElement(name="max-threads-constraint-name")
090: protected String maxThreadsConstraintName;
091: protected Capacity capacity;
092: @XmlElement(name="capacity-name")
093: protected String capacityName;
094: @XmlElement(name="work-manager-shutdown-trigger")
095: protected WorkManagerShutdownTrigger workManagerShutdownTrigger;
096: @XmlElement(name="ignore-stuck-threads")
097: protected Boolean ignoreStuckThreads;
098: @XmlAttribute
099: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
100: @XmlID
101: protected String id;
102:
103: /**
104: * Gets the value of the name property.
105: *
106: * @return
107: * possible object is
108: * {@link String }
109: *
110: */
111: public String getName() {
112: return name;
113: }
114:
115: /**
116: * Sets the value of the name property.
117: *
118: * @param value
119: * allowed object is
120: * {@link String }
121: *
122: */
123: public void setName(String value) {
124: this .name = value;
125: }
126:
127: /**
128: * Gets the value of the responseTimeRequestClass property.
129: *
130: * @return
131: * possible object is
132: * {@link ResponseTimeRequestClass }
133: *
134: */
135: public ResponseTimeRequestClass getResponseTimeRequestClass() {
136: return responseTimeRequestClass;
137: }
138:
139: /**
140: * Sets the value of the responseTimeRequestClass property.
141: *
142: * @param value
143: * allowed object is
144: * {@link ResponseTimeRequestClass }
145: *
146: */
147: public void setResponseTimeRequestClass(
148: ResponseTimeRequestClass value) {
149: this .responseTimeRequestClass = value;
150: }
151:
152: /**
153: * Gets the value of the fairShareRequestClass property.
154: *
155: * @return
156: * possible object is
157: * {@link FairShareRequestClass }
158: *
159: */
160: public FairShareRequestClass getFairShareRequestClass() {
161: return fairShareRequestClass;
162: }
163:
164: /**
165: * Sets the value of the fairShareRequestClass property.
166: *
167: * @param value
168: * allowed object is
169: * {@link FairShareRequestClass }
170: *
171: */
172: public void setFairShareRequestClass(FairShareRequestClass value) {
173: this .fairShareRequestClass = value;
174: }
175:
176: /**
177: * Gets the value of the contextRequestClass property.
178: *
179: * @return
180: * possible object is
181: * {@link ContextRequestClass }
182: *
183: */
184: public ContextRequestClass getContextRequestClass() {
185: return contextRequestClass;
186: }
187:
188: /**
189: * Sets the value of the contextRequestClass property.
190: *
191: * @param value
192: * allowed object is
193: * {@link ContextRequestClass }
194: *
195: */
196: public void setContextRequestClass(ContextRequestClass value) {
197: this .contextRequestClass = value;
198: }
199:
200: /**
201: * Gets the value of the requestClassName property.
202: *
203: * @return
204: * possible object is
205: * {@link String }
206: *
207: */
208: public String getRequestClassName() {
209: return requestClassName;
210: }
211:
212: /**
213: * Sets the value of the requestClassName property.
214: *
215: * @param value
216: * allowed object is
217: * {@link String }
218: *
219: */
220: public void setRequestClassName(String value) {
221: this .requestClassName = value;
222: }
223:
224: /**
225: * Gets the value of the minThreadsConstraint property.
226: *
227: * @return
228: * possible object is
229: * {@link MinThreadsConstraint }
230: *
231: */
232: public MinThreadsConstraint getMinThreadsConstraint() {
233: return minThreadsConstraint;
234: }
235:
236: /**
237: * Sets the value of the minThreadsConstraint property.
238: *
239: * @param value
240: * allowed object is
241: * {@link MinThreadsConstraint }
242: *
243: */
244: public void setMinThreadsConstraint(MinThreadsConstraint value) {
245: this .minThreadsConstraint = value;
246: }
247:
248: /**
249: * Gets the value of the minThreadsConstraintName property.
250: *
251: * @return
252: * possible object is
253: * {@link String }
254: *
255: */
256: public String getMinThreadsConstraintName() {
257: return minThreadsConstraintName;
258: }
259:
260: /**
261: * Sets the value of the minThreadsConstraintName property.
262: *
263: * @param value
264: * allowed object is
265: * {@link String }
266: *
267: */
268: public void setMinThreadsConstraintName(String value) {
269: this .minThreadsConstraintName = value;
270: }
271:
272: /**
273: * Gets the value of the maxThreadsConstraint property.
274: *
275: * @return
276: * possible object is
277: * {@link MaxThreadsConstraint }
278: *
279: */
280: public MaxThreadsConstraint getMaxThreadsConstraint() {
281: return maxThreadsConstraint;
282: }
283:
284: /**
285: * Sets the value of the maxThreadsConstraint property.
286: *
287: * @param value
288: * allowed object is
289: * {@link MaxThreadsConstraint }
290: *
291: */
292: public void setMaxThreadsConstraint(MaxThreadsConstraint value) {
293: this .maxThreadsConstraint = value;
294: }
295:
296: /**
297: * Gets the value of the maxThreadsConstraintName property.
298: *
299: * @return
300: * possible object is
301: * {@link String }
302: *
303: */
304: public String getMaxThreadsConstraintName() {
305: return maxThreadsConstraintName;
306: }
307:
308: /**
309: * Sets the value of the maxThreadsConstraintName property.
310: *
311: * @param value
312: * allowed object is
313: * {@link String }
314: *
315: */
316: public void setMaxThreadsConstraintName(String value) {
317: this .maxThreadsConstraintName = value;
318: }
319:
320: /**
321: * Gets the value of the capacity property.
322: *
323: * @return
324: * possible object is
325: * {@link Capacity }
326: *
327: */
328: public Capacity getCapacity() {
329: return capacity;
330: }
331:
332: /**
333: * Sets the value of the capacity property.
334: *
335: * @param value
336: * allowed object is
337: * {@link Capacity }
338: *
339: */
340: public void setCapacity(Capacity value) {
341: this .capacity = value;
342: }
343:
344: /**
345: * Gets the value of the capacityName property.
346: *
347: * @return
348: * possible object is
349: * {@link String }
350: *
351: */
352: public String getCapacityName() {
353: return capacityName;
354: }
355:
356: /**
357: * Sets the value of the capacityName property.
358: *
359: * @param value
360: * allowed object is
361: * {@link String }
362: *
363: */
364: public void setCapacityName(String value) {
365: this .capacityName = value;
366: }
367:
368: /**
369: * Gets the value of the workManagerShutdownTrigger property.
370: *
371: * @return
372: * possible object is
373: * {@link WorkManagerShutdownTrigger }
374: *
375: */
376: public WorkManagerShutdownTrigger getWorkManagerShutdownTrigger() {
377: return workManagerShutdownTrigger;
378: }
379:
380: /**
381: * Sets the value of the workManagerShutdownTrigger property.
382: *
383: * @param value
384: * allowed object is
385: * {@link WorkManagerShutdownTrigger }
386: *
387: */
388: public void setWorkManagerShutdownTrigger(
389: WorkManagerShutdownTrigger value) {
390: this .workManagerShutdownTrigger = value;
391: }
392:
393: /**
394: * Gets the value of the ignoreStuckThreads property.
395: *
396: * @return
397: * possible object is
398: * {@link Boolean }
399: *
400: */
401: public Boolean isIgnoreStuckThreads() {
402: return ignoreStuckThreads;
403: }
404:
405: /**
406: * Sets the value of the ignoreStuckThreads property.
407: *
408: * @param value
409: * allowed object is
410: * {@link Boolean }
411: *
412: */
413: public void setIgnoreStuckThreads(Boolean value) {
414: this .ignoreStuckThreads = value;
415: }
416:
417: /**
418: * Gets the value of the id property.
419: *
420: * @return
421: * possible object is
422: * {@link String }
423: *
424: */
425: public String getId() {
426: return id;
427: }
428:
429: /**
430: * Sets the value of the id property.
431: *
432: * @param value
433: * allowed object is
434: * {@link String }
435: *
436: */
437: public void setId(String value) {
438: this.id = value;
439: }
440:
441: }
|