1 27 package org.objectweb.jonas_rar.deployment.api; 28 29 import java.io.Serializable ; 30 31 import org.objectweb.jonas_rar.deployment.xml.PoolParams; 32 33 38 39 public class PoolParamsDesc implements Serializable { 40 41 44 private String poolInit = null; 45 46 49 private String poolMin = null; 50 51 54 private String poolMax = null; 55 56 59 private String poolMaxAge = null; 60 61 64 private String pstmtMax = null; 65 66 69 private String poolMaxAgeMinutes = null; 70 71 74 private String poolMaxOpentime = null; 75 76 79 private String poolMaxWaiters = null; 80 81 84 private String poolMaxWaittime = null; 85 86 89 private String poolSamplingPeriod = null; 90 91 95 public PoolParamsDesc(PoolParams pp) { 96 if (pp != null) { 97 poolInit = pp.getPoolInit(); 98 poolMin = pp.getPoolMin(); 99 poolMax = pp.getPoolMax(); 100 poolMaxAge = pp.getPoolMaxAge(); 101 pstmtMax = pp.getPstmtMax(); 102 poolMaxAgeMinutes = pp.getPoolMaxAgeMinutes(); 103 poolMaxOpentime = pp.getPoolMaxOpentime(); 104 poolMaxWaiters = pp.getPoolMaxWaiters(); 105 poolMaxWaittime = pp.getPoolMaxWaittime(); 106 poolSamplingPeriod = pp.getPoolSamplingPeriod(); 107 } 108 } 109 110 114 public String getPoolInit() { 115 return poolInit; 116 } 117 118 122 public String getPoolMin() { 123 return poolMin; 124 } 125 126 130 public String getPoolMax() { 131 return poolMax; 132 } 133 134 138 public String getPoolMaxAge() { 139 return poolMaxAge; 140 } 141 142 146 public String getPstmtMax() { 147 return pstmtMax; 148 } 149 150 154 public String getPoolMaxAgeMinutes() { 155 return poolMaxAgeMinutes; 156 } 157 158 162 public String getPoolMaxOpentime() { 163 return poolMaxOpentime; 164 } 165 166 170 public String getPoolMaxWaiters() { 171 return poolMaxWaiters; 172 } 173 174 178 public String getPoolMaxWaittime() { 179 return poolMaxWaittime; 180 } 181 182 186 public String getPoolSamplingPeriod() { 187 return poolSamplingPeriod; 188 } 189 } 190 | Popular Tags |