1 31 32 35 package org.objectweb.jonas.resource.pool.api; 36 37 41 42 43 81 public interface Pool { 82 88 void adjust() throws Exception ; 89 90 95 PoolMatchFactory getMatchFactory(); 96 97 103 int getMaxAge(); 104 105 111 int getMaxOpentime(); 112 113 117 int getMaxSize(); 118 119 125 int getMaxWaiters(); 126 127 133 int getMaxWaitTime(); 134 135 139 int getMinSize(); 140 141 150 Object getResource(Object hints) throws Exception ; 151 152 158 int getSamplingPeriod(); 159 160 164 long getTimeout(); 165 166 170 int getSize(); 171 172 181 void releaseResource(Object resource, boolean destroy, boolean adjustment) throws Exception ; 182 183 188 void sampling() throws Exception ; 189 190 196 void setInitSize(int initsize) throws Exception ; 197 198 203 void setMatchFactory(PoolMatchFactory pmf); 204 205 211 void setMaxAge(int maxAge); 212 213 219 void setMaxOpentime(int maxOpentime); 220 221 227 void setMaxSize(int maxsize) throws Exception ; 228 229 235 void setMaxWaiters(int maxWaiters); 236 237 243 void setMaxWaitTime(int maxWaitTime); 244 245 251 void setMinSize(int minsize) throws Exception ; 252 253 259 void setSamplingPeriod(int samplingPeriod); 260 261 266 void setTimeout(long crto); 267 268 272 void startMonitor(); 273 274 279 void validateMCs() throws Exception ; 280 281 282 285 public int getCurrentBusy(); 286 287 290 public int getCurrentOpened(); 291 292 295 int getBusyMaxRecent(); 296 297 300 int getBusyMinRecent(); 301 302 305 int getCurrentWaiters(); 306 307 310 int getOpenedCount(); 311 312 315 int getConnectionFailures(); 316 317 320 int getConnectionLeaks(); 321 322 325 int getServedOpen(); 326 327 330 int getRejectedFull(); 331 332 335 int getRejectedTimeout(); 336 337 340 int getRejectedOther(); 341 342 345 int getRejectedOpen(); 346 347 350 int getWaitersHigh(); 351 352 355 int getWaitersHighRecent(); 356 357 360 int getWaiterCount(); 361 362 365 long getWaitingTime(); 366 367 370 long getWaitingHigh(); 371 372 375 long getWaitingHighRecent(); 376 377 } 378 379 380 | Popular Tags |