public class

Settings

extends Object
java.lang.Object
   ↳ com.atlassian.jira.configurator.config.Settings

Class Overview

Stores raw settings as read from the config files

Summary

Constants
int DEFAULT_POOL_MAX_SIZE
long DEFAULT_POOL_MAX_WAIT
int DEFAULT_REMOVE_ABANDONED_TIMOUT
String MYSQL_VALIDATION_QUERY
int MYSQL_VALIDATION_QUERY_TIMEOUT
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
Settings()
Public Methods
void addComplexConfigurationReason(ComplexConfigurationReason complexConfigurationReason)
void applyDefaultAdvancedSettings()
Changes unset advanced connection pool settings to values that are appropriate for the selected database type.
boolean equals(Object o)
@Nonnull List<ComplexConfigurationReason> getComplexConfigurationReasons()
ConnectionPoolInfo.Builder getConnectionPoolInfoBuilder()
String getControlPort()
String getHttpPort()
JdbcDatasource.Builder getJdbcDatasourceBuilder()
String getJiraHome()
String getSchemaName()
@Nullable SslSettings getSslSettings()
@Nonnull WebServerProfile getWebServerProfile()
DatabaseType initDatabaseType(boolean initialLoad)
Determines the database type from the JDBC driver's class name.
void setConnectionPoolInfoBuilder(ConnectionPoolInfo.Builder connectionPoolInfoBuilder)
void setControlPort(String controlPort)
void setHttpPort(String httpPort)
void setJdbcDatasourceBuilder(JdbcDatasource.Builder jdbcDatasourceBuilder)
void setJiraHome(String jiraHome)
void setSchemaName(String schemaName)
void setSslSettings(SslSettings sslSettings)
String toString()
void updateWebServerConfiguration(String httpPort, SslSettings sslSettings)
[Expand]
Inherited Methods
From class java.lang.Object

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 Settings ()

Public Methods

public void addComplexConfigurationReason (ComplexConfigurationReason complexConfigurationReason)

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)

@Nonnull public List<ComplexConfigurationReason> getComplexConfigurationReasons ()

public ConnectionPoolInfo.Builder getConnectionPoolInfoBuilder ()

public String getControlPort ()

public String getHttpPort ()

public JdbcDatasource.Builder getJdbcDatasourceBuilder ()

public String getJiraHome ()

public String getSchemaName ()

@Nullable public SslSettings getSslSettings ()

@Nonnull public WebServerProfile getWebServerProfile ()

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.

public void setConnectionPoolInfoBuilder (ConnectionPoolInfo.Builder connectionPoolInfoBuilder)

public void setControlPort (String controlPort)

public void setHttpPort (String httpPort)

public void setJdbcDatasourceBuilder (JdbcDatasource.Builder jdbcDatasourceBuilder)

public void setJiraHome (String jiraHome)

public void setSchemaName (String schemaName)

public void setSslSettings (SslSettings sslSettings)

public String toString ()

public void updateWebServerConfiguration (String httpPort, SslSettings sslSettings)