View Javadoc

1   /*
2    * Copyright 2006-2011 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  
17  package org.kuali.rice.ksb.messaging.web;
18  
19  import org.apache.struts.action.ActionForm;
20  import org.kuali.rice.core.api.config.CoreConfigHelper;
21  import org.kuali.rice.ksb.messaging.threadpool.KSBThreadPool;
22  
23  
24  /**
25   * Struts ActionForm for the {@link ThreadPoolAction}.
26   *
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   *
29   */
30  public class ThreadPoolForm extends ActionForm {
31  
32      private static final long serialVersionUID = 6670668383823543732L;
33  
34      private String methodToCall;
35      private KSBThreadPool threadPool;
36      private Integer corePoolSize; //editable
37      private Integer maximumPoolSize; //editable
38  
39      private boolean allServers;
40      private Long timeIncrement;
41      private Long maxRetryAttempts;
42  
43      public String getMethodToCall() {
44          return this.methodToCall;
45      }
46      public void setMethodToCall(String methodToCall) {
47          this.methodToCall = methodToCall;
48      }
49      public Integer getCorePoolSize() {
50          return this.corePoolSize;
51      }
52      public void setCorePoolSize(Integer corePoolSize) {
53          this.corePoolSize = corePoolSize;
54      }
55      public Integer getMaximumPoolSize() {
56          return this.maximumPoolSize;
57      }
58      public void setMaximumPoolSize(Integer maximumPoolSize) {
59          this.maximumPoolSize = maximumPoolSize;
60      }
61      public KSBThreadPool getThreadPool() {
62          return this.threadPool;
63      }
64      public void setThreadPool(KSBThreadPool threadPool) {
65          this.threadPool = threadPool;
66      }
67      public boolean isAllServers() {
68          return this.allServers;
69      }
70      public void setAllServers(boolean allServers) {
71          this.allServers = allServers;
72      }
73      public String getApplicationId() {
74      	return CoreConfigHelper.getApplicationId();
75      }
76      public Long getMaxRetryAttempts() {
77          return this.maxRetryAttempts;
78      }
79      public void setMaxRetryAttempts(Long maxRetryAttempts) {
80          this.maxRetryAttempts = maxRetryAttempts;
81      }
82      public Long getTimeIncrement() {
83          return this.timeIncrement;
84      }
85      public void setTimeIncrement(Long timeIncrement) {
86          this.timeIncrement = timeIncrement;
87      }
88  
89  }