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 |
MIN_EVICTABLE_TIME_MILLIS |
static Long |
TIME_BETWEEN_EVICTION_RUNS_MILLIS |
static String |
VALIDATION_QUERY |
static String |
VALIDATION_QUERY_FOR_ORACLE |
static int |
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 String VALIDATION_QUERY
public static final String VALIDATION_QUERY_FOR_ORACLE
public static final Long MIN_EVICTABLE_TIME_MILLIS
public static final Long TIME_BETWEEN_EVICTION_RUNS_MILLIS
public static final int 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-2022 Atlassian. All Rights Reserved.