1 29 30 package com.caucho.management.server; 31 32 import com.caucho.jmx.Description; 33 import com.caucho.jmx.Units; 34 35 42 @Description("A pool of reusable connections to a database") 43 public interface ConnectionPoolMXBean extends ManagedObjectMXBean { 44 48 51 @Description("The configured maximum number of connections") 52 public int getMaxConnections(); 53 54 57 @Description("The configured maximum number of overflow connections") 58 public int getMaxOverflowConnections(); 59 60 63 @Description("The configured maximum number of simultaneous connection creation") 64 public int getMaxCreateConnections(); 65 66 69 @Units("milliseconds") 70 @Description("The configured maximum time in milliseconds that a connection remains in the idle pool before it is closed") 71 public long getMaxIdleTime(); 72 73 76 @Description("The configured maximum time in milliseconds that a connection is allowed to be active") 77 @Units("milliseconds") 78 public long getMaxActiveTime(); 79 80 83 @Description("The configured maximum age in milliseconds of a connection before it is closed regardless of it's usage pattern") 84 @Units("milliseconds") 85 public long getMaxPoolTime(); 86 87 90 @Units("milliseconds") 91 @Description("The configured maximum time in milliseconds to wait for a connection before a failure is returned to the client") 92 public long getConnectionWaitTime(); 93 94 97 public boolean isShareable(); 98 99 102 public boolean isLocalTransactionOptimization(); 103 104 108 111 @Description("The current number of idle and active connections") 112 public int getConnectionCount(); 113 114 117 @Description("The current number of active connections") 118 public int getConnectionActiveCount(); 119 120 123 @Description("The current number of idle connections") 124 public int getConnectionIdleCount(); 125 126 130 133 @Description("Clear idle connections in the pool") 134 public void clear(); 135 } 136 | Popular Tags |