blob: 0964597694cc61b39b1cc66790fd52a18263c54c [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.ozone.recon;
import org.apache.hadoop.hdds.annotation.InterfaceAudience;
import org.apache.hadoop.hdds.annotation.InterfaceStability;
/**
* This class contains constants for Recon configuration keys.
*/
@InterfaceAudience.Public
@InterfaceStability.Unstable
public final class ReconServerConfigKeys {
public static final String OZONE_RECON_HTTP_ENABLED_KEY =
"ozone.recon.http.enabled";
public static final String OZONE_RECON_HTTP_BIND_HOST_KEY =
"ozone.recon.http-bind-host";
public static final String OZONE_RECON_HTTPS_BIND_HOST_KEY =
"ozone.recon.https-bind-host";
public static final String OZONE_RECON_HTTP_ADDRESS_KEY =
"ozone.recon.http-address";
public static final String OZONE_RECON_HTTPS_ADDRESS_KEY =
"ozone.recon.https-address";
public static final String OZONE_RECON_HTTP_KEYTAB_FILE =
"ozone.recon.http.auth.kerberos.keytab";
public static final String OZONE_RECON_HTTP_BIND_HOST_DEFAULT =
"0.0.0.0";
public static final int OZONE_RECON_HTTP_BIND_PORT_DEFAULT = 9888;
public static final int OZONE_RECON_HTTPS_BIND_PORT_DEFAULT = 9889;
public static final String OZONE_RECON_WEB_AUTHENTICATION_KERBEROS_PRINCIPAL =
"ozone.recon.http.auth.kerberos.principal";
public static final String OZONE_RECON_CONTAINER_DB_CACHE_SIZE_MB =
"ozone.recon.container.db.cache.size.mb";
public static final int OZONE_RECON_CONTAINER_DB_CACHE_SIZE_DEFAULT = 128;
public static final String OZONE_RECON_DB_DIR = "ozone.recon.db.dir";
public static final String OZONE_RECON_OM_SNAPSHOT_DB_DIR =
"ozone.recon.om.db.dir";
public static final String OZONE_RECON_SCM_DB_DIR =
"ozone.recon.scm.db.dirs";
public static final String RECON_STORAGE_DIR = "recon";
public static final String OZONE_RECON_OM_SOCKET_TIMEOUT =
"ozone.recon.om.socket.timeout";
public static final String OZONE_RECON_OM_SOCKET_TIMEOUT_DEFAULT = "5s";
@Deprecated
public static final String RECON_OM_SOCKET_TIMEOUT =
"recon.om.socket.timeout";
public static final String OZONE_RECON_OM_CONNECTION_TIMEOUT =
"ozone.recon.om.connection.timeout";
public static final String OZONE_RECON_OM_CONNECTION_TIMEOUT_DEFAULT = "5s";
@Deprecated
public static final String RECON_OM_CONNECTION_TIMEOUT =
"recon.om.connection.timeout";
public static final String OZONE_RECON_OM_CONNECTION_REQUEST_TIMEOUT =
"ozone.recon.om.connection.request.timeout";
public static final String OZONE_RECON_OM_CONNECTION_REQUEST_TIMEOUT_DEFAULT =
"5s";
@Deprecated
public static final String RECON_OM_CONNECTION_REQUEST_TIMEOUT =
"recon.om.connection.request.timeout";
public static final String OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY =
"ozone.recon.om.snapshot.task.initial.delay";
public static final String
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY_DEFAULT = "1m";
@Deprecated
public static final String RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY =
"recon.om.snapshot.task.initial.delay";
public static final String OZONE_RECON_OM_SNAPSHOT_TASK_INTERVAL_DELAY =
"ozone.recon.om.snapshot.task.interval.delay";
public static final String OZONE_RECON_OM_SNAPSHOT_TASK_INTERVAL_DEFAULT
= "10m";
@Deprecated
public static final String RECON_OM_SNAPSHOT_TASK_INTERVAL_DELAY =
"recon.om.snapshot.task.interval.delay";
public static final String OZONE_RECON_OM_SNAPSHOT_TASK_FLUSH_PARAM =
"ozone.recon.om.snapshot.task.flush.param";
@Deprecated
public static final String RECON_OM_SNAPSHOT_TASK_FLUSH_PARAM =
"recon.om.snapshot.task.flush.param";
public static final String OZONE_RECON_TASK_THREAD_COUNT_KEY =
"ozone.recon.task.thread.count";
public static final int OZONE_RECON_TASK_THREAD_COUNT_DEFAULT = 5;
public static final String OZONE_RECON_HTTP_AUTH_CONFIG_PREFIX =
"ozone.recon.http.auth.";
public static final String OZONE_RECON_HTTP_AUTH_TYPE =
OZONE_RECON_HTTP_AUTH_CONFIG_PREFIX + "type";
public static final String OZONE_RECON_METRICS_HTTP_CONNECTION_TIMEOUT =
"ozone.recon.metrics.http.connection.timeout";
public static final String
OZONE_RECON_METRICS_HTTP_CONNECTION_TIMEOUT_DEFAULT =
"10s";
public static final String
OZONE_RECON_METRICS_HTTP_CONNECTION_REQUEST_TIMEOUT =
"ozone.recon.metrics.http.connection.request.timeout";
public static final String
OZONE_RECON_METRICS_HTTP_CONNECTION_REQUEST_TIMEOUT_DEFAULT = "10s";
/**
* Private constructor for utility class.
*/
private ReconServerConfigKeys() {
}
}