01: /*
02: * Copyright 2007 The Kuali Foundation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package edu.iu.uis.eden.messaging.web;
17:
18: import org.apache.struts.action.ActionForm;
19:
20: import edu.iu.uis.eden.messaging.threadpool.KSBThreadPool;
21:
22: /**
23: * Struts ActionForm for the {@link ThreadPoolAction}.
24: *
25: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
26: *
27: */
28: public class ThreadPoolForm extends ActionForm {
29:
30: private static final long serialVersionUID = 6670668383823543732L;
31:
32: private String methodToCall;
33: private KSBThreadPool threadPool;
34: private Integer corePoolSize; //editable
35: private Integer maximumPoolSize; //editable
36:
37: public String getMethodToCall() {
38: return this .methodToCall;
39: }
40:
41: public void setMethodToCall(String methodToCall) {
42: this .methodToCall = methodToCall;
43: }
44:
45: public Integer getCorePoolSize() {
46: return this .corePoolSize;
47: }
48:
49: public void setCorePoolSize(Integer corePoolSize) {
50: this .corePoolSize = corePoolSize;
51: }
52:
53: public Integer getMaximumPoolSize() {
54: return this .maximumPoolSize;
55: }
56:
57: public void setMaximumPoolSize(Integer maximumPoolSize) {
58: this .maximumPoolSize = maximumPoolSize;
59: }
60:
61: public KSBThreadPool getThreadPool() {
62: return this .threadPool;
63: }
64:
65: public void setThreadPool(KSBThreadPool threadPool) {
66: this.threadPool = threadPool;
67: }
68:
69: }
|