com.atlassian.jira.configurator.config
Class Settings
java.lang.Object
com.atlassian.jira.configurator.config.Settings
public class Settings
- extends Object
Stores raw settings as read from the config files
DEFAULT_POOL_MAX_SIZE
public static final int DEFAULT_POOL_MAX_SIZE
- See Also:
- Constant Field Values
DEFAULT_POOL_MAX_WAIT
public static final long DEFAULT_POOL_MAX_WAIT
- See Also:
- Constant Field Values
DEFAULT_REMOVE_ABANDONED_TIMOUT
public static final int DEFAULT_REMOVE_ABANDONED_TIMOUT
- See Also:
- Constant Field Values
HSQL_MIN_EVICTABLE_TIME_MILLIS
public static final Long HSQL_MIN_EVICTABLE_TIME_MILLIS
HSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
public static final Long HSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
MYSQL_MIN_EVICTABLE_TIME_MILLIS
public static final Long MYSQL_MIN_EVICTABLE_TIME_MILLIS
MYSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
public static final Long MYSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
MYSQL_VALIDATION_QUERY
public static final String MYSQL_VALIDATION_QUERY
- See Also:
- Constant Field Values
MYSQL_VALIDATION_QUERY_TIMEOUT
public static final int MYSQL_VALIDATION_QUERY_TIMEOUT
- See Also:
- Constant Field Values
Settings
public Settings()
getJiraHome
public String getJiraHome()
setJiraHome
public void setJiraHome(String jiraHome)
getSchemaName
public String getSchemaName()
setSchemaName
public void setSchemaName(String schemaName)
getHttpPort
public String getHttpPort()
setHttpPort
public void setHttpPort(String httpPort)
getControlPort
public String getControlPort()
setControlPort
public void setControlPort(String controlPort)
getSslSettings
@Nullable
public SslSettings getSslSettings()
setSslSettings
public void setSslSettings(@Nullable
SslSettings sslSettings)
getWebServerProfile
@Nonnull
public WebServerProfile getWebServerProfile()
updateWebServerConfiguration
public void updateWebServerConfiguration(@Nullable
String httpPort,
@Nullable
SslSettings sslSettings)
getComplexConfigurationReasons
@Nonnull
public List<ComplexConfigurationReason> getComplexConfigurationReasons()
addComplexConfigurationReason
public void addComplexConfigurationReason(@Nonnull
ComplexConfigurationReason complexConfigurationReason)
getJdbcDatasourceBuilder
public JdbcDatasource.Builder getJdbcDatasourceBuilder()
setJdbcDatasourceBuilder
public void setJdbcDatasourceBuilder(JdbcDatasource.Builder jdbcDatasourceBuilder)
getConnectionPoolInfoBuilder
public org.ofbiz.core.entity.config.ConnectionPoolInfo.Builder getConnectionPoolInfoBuilder()
setConnectionPoolInfoBuilder
public void setConnectionPoolInfoBuilder(org.ofbiz.core.entity.config.ConnectionPoolInfo.Builder connectionPoolInfoBuilder)
initDatabaseType
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
- Throws:
IllegalArgumentException
- if the JDBC driver's class name is
not recognized.
applyDefaultAdvancedSettings
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.
- Throws:
IllegalArgumentException
- as for initDatabaseType(boolean)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2013 Atlassian. All Rights Reserved.