1 6 package org.logicalcobwebs.proxool; 7 8 import java.util.Properties ; 9 import java.util.Set ; 10 11 29 public interface ConnectionPoolDefinitionIF { 30 31 32 public static final int DEFAULT_MAXIMUM_CONNECTION_LIFETIME = 4 * 60 * 60 * 1000; 34 35 public static final int DEFAULT_MAXIMUM_ACTIVE_TIME = 300000; 37 38 public static final int DEFAULT_PROTOTYPE_COUNT = 0; 39 40 41 public static final int DEFAULT_MINIMUM_CONNECTION_COUNT = 0; 42 43 44 public static final int DEFAULT_MAXIMUM_CONNECTION_COUNT = 15; 45 46 47 public static final int DEFAULT_HOUSE_KEEPING_SLEEP_TIME = 30000; 48 49 52 public static final int DEFAULT_MAXIMUM_NEW_CONNECTIONS = 10; 53 54 55 public static final int DEFAULT_SIMULTANEOUS_BUILD_THROTTLE = 10; 56 57 58 public static final int DEFAULT_OVERLOAD_WITHOUT_REFUSAL_THRESHOLD = 60000; 59 60 61 public static final int DEFAULT_RECENTLY_STARTED_THRESHOLD = 60000; 62 63 public static final int DEBUG_LEVEL_QUIET = 0; 64 65 public static final int DEBUG_LEVEL_LOUD = 1; 66 67 public static final String USER_PROPERTY = "user"; 68 69 public static final String PASSWORD_PROPERTY = "password"; 70 71 74 public static final String FATAL_SQL_EXCEPTIONS_DELIMITER = ","; 75 76 77 int getHouseKeepingSleepTime(); 78 79 80 int getMaximumConnectionCount(); 81 82 83 int getMaximumConnectionLifetime(); 84 85 90 int getMaximumNewConnections(); 91 92 96 int getSimultaneousBuildThrottle(); 97 98 99 int getMinimumConnectionCount(); 100 101 102 String getName(); 103 104 105 String getAlias(); 106 107 108 String getPassword(); 109 110 116 int getPrototypeCount(); 117 118 119 String getUrl(); 120 121 122 123 String getUser(); 124 125 127 String getJdbcDriverVersion(); 128 129 134 Properties getProperties(); 135 136 String getDriver(); 137 138 142 int getRecentlyStartedThreshold(); 143 144 150 int getOverloadWithoutRefusalLifetime(); 151 152 155 int getMaximumActiveTime(); 156 157 160 int getDebugLevel(); 161 162 172 Set getFatalSqlExceptions(); 173 174 179 String getHouseKeepingTestSql(); 180 181 186 boolean isTestBeforeUse(); 187 188 194 boolean isTestAfterUse(); 195 196 201 String getCompleteUrl(); 202 203 210 boolean isVerbose(); 211 212 218 boolean isTrace(); 219 220 228 String getStatistics(); 229 230 236 String getStatisticsLogLevel(); 237 238 242 Properties getDelegateProperties(); 243 244 String getDelegateProperty(String name); 245 246 254 String getFatalSqlExceptionWrapper(); 255 256 260 String getInitialContextFactory(); 261 262 266 String getProviderUrl(); 267 268 272 String getSecurityAuthentication(); 273 274 278 String getSecurityPrincipal(); 279 280 284 String getSecurityCredentials(); 285 286 290 String getJndiName(); 291 292 296 boolean isJmx(); 297 298 304 String getJmxAgentId(); 305 306 314 Class getInjectableConnectionInterface(); 315 316 324 Class getInjectableStatementInterface(); 325 326 334 Class getInjectablePreparedStatementInterface(); 335 336 344 Class getInjectableCallableStatementInterface(); 345 346 } 347 348 430 | Popular Tags |