001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.ksb.messaging.web; 017 018import org.apache.struts.action.ActionForm; 019import org.kuali.rice.core.api.config.CoreConfigHelper; 020import org.kuali.rice.ksb.messaging.threadpool.KSBThreadPool; 021 022 023/** 024 * Struts ActionForm for the {@link ThreadPoolAction}. 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 * 028 */ 029public class ThreadPoolForm extends ActionForm { 030 031 private static final long serialVersionUID = 6670668383823543732L; 032 033 private String methodToCall; 034 private KSBThreadPool threadPool; 035 private Integer corePoolSize; //editable 036 private Integer maximumPoolSize; //editable 037 038 private boolean allServers; 039 private Long timeIncrement; 040 private Long maxRetryAttempts; 041 042 public String getMethodToCall() { 043 return this.methodToCall; 044 } 045 public void setMethodToCall(String methodToCall) { 046 this.methodToCall = methodToCall; 047 } 048 public Integer getCorePoolSize() { 049 return this.corePoolSize; 050 } 051 public void setCorePoolSize(Integer corePoolSize) { 052 this.corePoolSize = corePoolSize; 053 } 054 public Integer getMaximumPoolSize() { 055 return this.maximumPoolSize; 056 } 057 public void setMaximumPoolSize(Integer maximumPoolSize) { 058 this.maximumPoolSize = maximumPoolSize; 059 } 060 public KSBThreadPool getThreadPool() { 061 return this.threadPool; 062 } 063 public void setThreadPool(KSBThreadPool threadPool) { 064 this.threadPool = threadPool; 065 } 066 public boolean isAllServers() { 067 return this.allServers; 068 } 069 public void setAllServers(boolean allServers) { 070 this.allServers = allServers; 071 } 072 public String getApplicationId() { 073 return CoreConfigHelper.getApplicationId(); 074 } 075 public Long getMaxRetryAttempts() { 076 return this.maxRetryAttempts; 077 } 078 public void setMaxRetryAttempts(Long maxRetryAttempts) { 079 this.maxRetryAttempts = maxRetryAttempts; 080 } 081 public Long getTimeIncrement() { 082 return this.timeIncrement; 083 } 084 public void setTimeIncrement(Long timeIncrement) { 085 this.timeIncrement = timeIncrement; 086 } 087 088}