1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class PoolParams extends AbsElement { 38 39 42 private String poolInit = null; 43 44 47 private String poolMin = null; 48 49 52 private String poolMax = null; 53 54 57 private String poolMaxAge = null; 58 59 62 private String pstmtMax = null; 63 64 67 private String poolMaxAgeMinutes = null; 68 69 72 private String poolMaxOpentime = null; 73 74 77 private String poolMaxWaiters = null; 78 79 82 private String poolMaxWaittime = null; 83 84 87 private String poolSamplingPeriod = null; 88 89 90 93 public PoolParams() { 94 super(); 95 } 96 97 101 public String getPoolInit() { 102 return poolInit; 103 } 104 105 109 public void setPoolInit(String poolInit) { 110 this.poolInit = poolInit; 111 } 112 113 117 public String getPoolMin() { 118 return poolMin; 119 } 120 121 125 public void setPoolMin(String poolMin) { 126 this.poolMin = poolMin; 127 } 128 129 133 public String getPoolMax() { 134 return poolMax; 135 } 136 137 141 public void setPoolMax(String poolMax) { 142 this.poolMax = poolMax; 143 } 144 145 149 public String getPoolMaxAge() { 150 return poolMaxAge; 151 } 152 153 157 public void setPoolMaxAge(String poolMaxAge) { 158 this.poolMaxAge = poolMaxAge; 159 } 160 161 165 public String getPstmtMax() { 166 return pstmtMax; 167 } 168 169 173 public void setPstmtMax(String pstmtMax) { 174 this.pstmtMax = pstmtMax; 175 } 176 177 181 public String getPoolMaxAgeMinutes() { 182 return poolMaxAgeMinutes; 183 } 184 188 public void setPoolMaxAgeMinutes(String val) { 189 poolMaxAgeMinutes = val; 190 } 191 192 196 public String getPoolMaxOpentime() { 197 return poolMaxOpentime; 198 } 199 203 public void setPoolMaxOpentime(String val) { 204 poolMaxOpentime = val; 205 } 206 207 211 public String getPoolMaxWaiters() { 212 return poolMaxWaiters; 213 } 214 218 public void setPoolMaxWaiters(String val) { 219 poolMaxWaiters = val; 220 } 221 222 226 public String getPoolMaxWaittime() { 227 return poolMaxWaittime; 228 } 229 233 public void setPoolMaxWaittime(String val) { 234 poolMaxWaittime = val; 235 } 236 237 241 public String getPoolSamplingPeriod() { 242 return poolSamplingPeriod; 243 } 244 248 public void setPoolSamplingPeriod(String val) { 249 poolSamplingPeriod = val; 250 } 251 252 257 public String toXML(int indent) { 258 StringBuffer sb = new StringBuffer (); 259 sb.append(indent(indent)); 260 sb.append("<pool-params>\n"); 261 262 indent += 2; 263 264 sb.append(xmlElement(poolInit, "pool-init", indent)); 266 sb.append(xmlElement(poolMin, "pool-min", indent)); 268 sb.append(xmlElement(poolMax, "pool-max", indent)); 270 if (poolMaxAge != null) { 271 sb.append(xmlElement(poolMaxAge, "pool-max-age", indent)); 273 } else { 274 sb.append(xmlElement(poolMaxAgeMinutes, "pool-max-age-minutes", indent)); 276 } 277 sb.append(xmlElement(pstmtMax, "pstmt-max", indent)); 279 sb.append(xmlElement(poolMaxOpentime, "pool-max-opentime", indent)); 281 sb.append(xmlElement(poolMaxWaiters, "pool-max-waiters", indent)); 283 sb.append(xmlElement(poolMaxWaittime, "pool-max-waittime", indent)); 285 sb.append(xmlElement(poolSamplingPeriod, "pool-sampling-period", indent)); 287 indent -= 2; 288 sb.append(indent(indent)); 289 sb.append("</pool-params>\n"); 290 291 return sb.toString(); 292 } 293 } 294 | Popular Tags |