|
@@ -114,6 +114,10 @@ public class Configuration {
|
|
|
public static final String CLIENT_API_SSL_KEY_NAME_KEY = "client.api.ssl.key_name";
|
|
|
public static final String SERVER_DB_NAME_KEY = "server.jdbc.database_name";
|
|
|
public static final String SERVER_DB_NAME_DEFAULT = "ambari";
|
|
|
+ public static final String REQUEST_READ_TIMEOUT = "views.request.read.timeout.millis";
|
|
|
+ public static final String REQUEST_READ_TIMEOUT_DEFAULT= "10000";
|
|
|
+ public static final String REQUEST_CONNECT_TIMEOUT = "views.request.connect.timeout.millis";
|
|
|
+ public static final String REQUEST_CONNECT_TIMEOUT_DEFAULT = "5000";
|
|
|
public static final String SERVER_JDBC_POSTGRES_SCHEMA_NAME = "server.jdbc.postgres.schema";
|
|
|
public static final String POSTGRES_DB_NAME = "postgres";
|
|
|
public static final String ORACLE_DB_NAME = "oracle";
|
|
@@ -1098,6 +1102,16 @@ public class Configuration {
|
|
|
DEFAULT_SCHEDULER_THREAD_COUNT);
|
|
|
}
|
|
|
|
|
|
+ public Integer getRequestReadTimeout() {
|
|
|
+ return Integer.parseInt(properties.getProperty(REQUEST_READ_TIMEOUT,
|
|
|
+ REQUEST_READ_TIMEOUT_DEFAULT));
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getRequestConnectTimeout() {
|
|
|
+ return Integer.parseInt(properties.getProperty(REQUEST_CONNECT_TIMEOUT,
|
|
|
+ REQUEST_CONNECT_TIMEOUT_DEFAULT));
|
|
|
+ }
|
|
|
+
|
|
|
public String getExecutionSchedulerConnections() {
|
|
|
return properties.getProperty(EXECUTION_SCHEDULER_CONNECTIONS,
|
|
|
DEFAULT_SCHEDULER_MAX_CONNECTIONS);
|