com.atlassian.jira.configurator.config
Class Settings

java.lang.Object
  extended by com.atlassian.jira.configurator.config.Settings

public class Settings
extends Object

Stores raw settings as read from the config files


Field Summary
static int DEFAULT_POOL_MAX_SIZE
           
static long DEFAULT_POOL_MAX_WAIT
           
static int DEFAULT_REMOVE_ABANDONED_TIMOUT
           
static Long HSQL_MIN_EVICTABLE_TIME_MILLIS
           
static Long HSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
           
static Long MYSQL_MIN_EVICTABLE_TIME_MILLIS
           
static Long MYSQL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
           
static String MYSQL_VALIDATION_QUERY
           
static int MYSQL_VALIDATION_QUERY_TIMEOUT
           
 
Constructor Summary
Settings()
           
 
Method Summary
 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)
           
 List<ComplexConfigurationReason> getComplexConfigurationReasons()
           
 org.ofbiz.core.entity.config.ConnectionPoolInfo.Builder getConnectionPoolInfoBuilder()
           
 String getControlPort()
           
 String getHttpPort()
           
 JdbcDatasource.Builder getJdbcDatasourceBuilder()
           
 String getJiraHome()
           
 String getSchemaName()
           
 SslSettings getSslSettings()
           
 WebServerProfile getWebServerProfile()
           
 DatabaseType initDatabaseType(boolean initialLoad)
          Determines the database type from the JDBC driver's class name.
 void setConnectionPoolInfoBuilder(org.ofbiz.core.entity.config.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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Settings

public Settings()
Method Detail

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-2014 Atlassian. All Rights Reserved.