public class Settings extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Settings() |
public static final int DEFAULT_POOL_MAX_SIZE
public static final long DEFAULT_POOL_MAX_WAIT
public static final int DEFAULT_REMOVE_ABANDONED_TIMOUT
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 static final String MYSQL_VALIDATION_QUERY
public static final int MYSQL_VALIDATION_QUERY_TIMEOUT
public String getJiraHome()
public void setJiraHome(String jiraHome)
public String getSchemaName()
public void setSchemaName(String schemaName)
public String getHttpPort()
public void setHttpPort(String httpPort)
public String getControlPort()
public void setControlPort(String controlPort)
@Nullable public SslSettings getSslSettings()
public void setSslSettings(@Nullable SslSettings sslSettings)
@Nonnull public WebServerProfile getWebServerProfile()
public void updateWebServerConfiguration(@Nullable String httpPort, @Nullable SslSettings sslSettings)
@Nonnull public List<ComplexConfigurationReason> getComplexConfigurationReasons()
public void addComplexConfigurationReason(@Nonnull ComplexConfigurationReason complexConfigurationReason)
public JdbcDatasource.Builder getJdbcDatasourceBuilder()
public void setJdbcDatasourceBuilder(JdbcDatasource.Builder jdbcDatasourceBuilder)
public org.ofbiz.core.entity.config.ConnectionPoolInfo.Builder getConnectionPoolInfoBuilder()
public void setConnectionPoolInfoBuilder(org.ofbiz.core.entity.config.ConnectionPoolInfo.Builder connectionPoolInfoBuilder)
public DatabaseType initDatabaseType(boolean initialLoad)
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.IllegalArgumentException
- if the JDBC driver's class name is
not recognized.public void applyDefaultAdvancedSettings()
initDatabaseType(false)
to ensure that the database type is set consistently before setting
the values.IllegalArgumentException
- as for initDatabaseType(boolean)
Copyright © 2002-2015 Atlassian. All Rights Reserved.