View Javadoc

1   /**
2    * Copyright 2005-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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 org.kuali.rice.ksb.messaging.web;
17  
18  import org.apache.struts.action.ActionForm;
19  import org.kuali.rice.core.api.config.CoreConfigHelper;
20  import org.kuali.rice.ksb.messaging.threadpool.KSBThreadPool;
21  
22  
23  /**
24   * Struts ActionForm for the {@link ThreadPoolAction}.
25   *
26   * @author Kuali Rice Team (rice.collab@kuali.org)
27   *
28   */
29  public class ThreadPoolForm extends ActionForm {
30  
31      private static final long serialVersionUID = 6670668383823543732L;
32  
33      private String methodToCall;
34      private KSBThreadPool threadPool;
35      private Integer corePoolSize; //editable
36      private Integer maximumPoolSize; //editable
37  
38      private boolean allServers;
39      private Long timeIncrement;
40      private Long maxRetryAttempts;
41  
42      public String getMethodToCall() {
43          return this.methodToCall;
44      }
45      public void setMethodToCall(String methodToCall) {
46          this.methodToCall = methodToCall;
47      }
48      public Integer getCorePoolSize() {
49          return this.corePoolSize;
50      }
51      public void setCorePoolSize(Integer corePoolSize) {
52          this.corePoolSize = corePoolSize;
53      }
54      public Integer getMaximumPoolSize() {
55          return this.maximumPoolSize;
56      }
57      public void setMaximumPoolSize(Integer maximumPoolSize) {
58          this.maximumPoolSize = maximumPoolSize;
59      }
60      public KSBThreadPool getThreadPool() {
61          return this.threadPool;
62      }
63      public void setThreadPool(KSBThreadPool threadPool) {
64          this.threadPool = threadPool;
65      }
66      public boolean isAllServers() {
67          return this.allServers;
68      }
69      public void setAllServers(boolean allServers) {
70          this.allServers = allServers;
71      }
72      public String getApplicationId() {
73      	return CoreConfigHelper.getApplicationId();
74      }
75      public Long getMaxRetryAttempts() {
76          return this.maxRetryAttempts;
77      }
78      public void setMaxRetryAttempts(Long maxRetryAttempts) {
79          this.maxRetryAttempts = maxRetryAttempts;
80      }
81      public Long getTimeIncrement() {
82          return this.timeIncrement;
83      }
84      public void setTimeIncrement(Long timeIncrement) {
85          this.timeIncrement = timeIncrement;
86      }
87  
88  }