Class Overview
Stores raw settings as read from the config files
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
DEFAULT_POOL_MAX_SIZE
Constant Value:
20
(0x00000014)
public
static
final
long
DEFAULT_POOL_MAX_WAIT
Constant Value:
30000
(0x0000000000007530)
public
static
final
int
DEFAULT_REMOVE_ABANDONED_TIMOUT
Constant Value:
300
(0x0000012c)
public
static
final
String
MYSQL_VALIDATION_QUERY
Constant Value:
"select 1"
public
static
final
int
MYSQL_VALIDATION_QUERY_TIMEOUT
Constant Value:
3
(0x00000003)
Fields
public
static
final
Long
HSQL_MIN_EVICTABLE_TIME_MILLIS
public
static
final
Long
HSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
public
static
final
Long
MYSQL_MIN_EVICTABLE_TIME_MILLIS
public
static
final
Long
MYSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
Public Constructors
Public Methods
public
void
applyDefaultAdvancedSettings
()
Changes unset advanced connection pool settings to values that
are appropriate for the selected database type. Implicitly calls
initDatabaseType(false)
to ensure that the database type is set consistently before setting
the values.
public
boolean
equals
(Object o)
public
ConnectionPoolInfo.Builder
getConnectionPoolInfoBuilder
()
public
String
getControlPort
()
public
String
getSchemaName
()
public
DatabaseType
initDatabaseType
(boolean initialLoad)
Determines the database type from the JDBC driver's class name.
Parameters
initialLoad
| indicates whether the database type is being reset
in response to loading the database configuration file. If it is,
then any settings that match database-specific defaults are cleared
to avoid impacting another database type if it gets changed. |
Returns
- the resulting database type
public
void
setConnectionPoolInfoBuilder
(ConnectionPoolInfo.Builder connectionPoolInfoBuilder)
public
void
setControlPort
(String controlPort)
public
void
setHttpPort
(String httpPort)
public
void
setJiraHome
(String jiraHome)
public
void
setSchemaName
(String schemaName)