@InterfaceAudience.Private public class RESTServlet extends Object implements Constants
Modifier and Type | Field and Description |
---|---|
static String |
CLEANUP_INTERVAL |
private org.apache.hadoop.conf.Configuration |
conf |
private ConnectionCache |
connectionCache |
(package private) static String |
HBASE_REST_SUPPORT_PROXYUSER |
private static RESTServlet |
INSTANCE |
private static org.slf4j.Logger |
LOG |
static String |
MAX_IDLETIME |
private MetricsREST |
metrics |
private JvmPauseMonitor |
pauseMonitor |
private org.apache.hadoop.security.UserGroupInformation |
realUser |
CRLF, CUSTOM_FILTERS, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, DEFAULT_REST_CLIENT_CONN_TIMEOUT, DEFAULT_REST_CLIENT_SOCKET_TIMEOUT, FILTER_CLASSES, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, NOCACHE_PARAM_NAME, REST_AUTHENTICATION_PRINCIPAL, REST_AUTHENTICATION_TYPE, REST_CLIENT_CONN_TIMEOUT, REST_CLIENT_SOCKET_TIMEOUT, REST_CONNECTOR_ACCEPT_QUEUE_SIZE, REST_DNS_INTERFACE, REST_DNS_NAMESERVER, REST_KERBEROS_PRINCIPAL, REST_KEYTAB_FILE, REST_SSL_ENABLED, REST_SSL_EXCLUDE_CIPHER_SUITES, REST_SSL_EXCLUDE_PROTOCOLS, REST_SSL_INCLUDE_CIPHER_SUITES, REST_SSL_INCLUDE_PROTOCOLS, REST_SSL_KEYSTORE_KEYPASSWORD, REST_SSL_KEYSTORE_PASSWORD, REST_SSL_KEYSTORE_STORE, REST_SSL_KEYSTORE_TYPE, REST_SSL_TRUSTSTORE_PASSWORD, REST_SSL_TRUSTSTORE_STORE, REST_SSL_TRUSTSTORE_TYPE, REST_THREAD_POOL_TASK_QUEUE_SIZE, REST_THREAD_POOL_THREAD_IDLE_TIMEOUT, REST_THREAD_POOL_THREADS_MAX, REST_THREAD_POOL_THREADS_MIN, ROW_KEYS_PARAM_NAME, SCAN_BATCH_SIZE, SCAN_CACHE_BLOCKS, SCAN_COLUMN, SCAN_END_ROW, SCAN_END_TIME, SCAN_FETCH_SIZE, SCAN_FILTER, SCAN_LIMIT, SCAN_MAX_VERSIONS, SCAN_REVERSED, SCAN_START_ROW, SCAN_START_TIME, VERSION_STRING
Constructor and Description |
---|
RESTServlet(org.apache.hadoop.conf.Configuration conf,
UserProvider userProvider)
Constructor with existing configuration
|
Modifier and Type | Method and Description |
---|---|
(package private) Admin |
getAdmin() |
(package private) org.apache.hadoop.conf.Configuration |
getConfiguration() |
ConnectionCache |
getConnectionCache()
Returns the ConnectionCache instance
|
static RESTServlet |
getInstance()
Returns the RESTServlet singleton instance
|
static RESTServlet |
getInstance(org.apache.hadoop.conf.Configuration conf,
UserProvider userProvider) |
(package private) MetricsREST |
getMetrics() |
(package private) org.apache.hadoop.security.UserGroupInformation |
getRealUser() |
(package private) Table |
getTable(String tableName)
Caller closes the table afterwards.
|
(package private) boolean |
isReadOnly()
Helper method to determine if server should only respond to GET HTTP method requests.
|
private void |
registerCustomFilter(org.apache.hadoop.conf.Configuration conf) |
(package private) void |
setEffectiveUser(String effectiveUser) |
(package private) void |
shutdown()
Shutdown any services that need to stop
|
static void |
stop() |
(package private) boolean |
supportsProxyuser() |
private static final org.slf4j.Logger LOG
private static RESTServlet INSTANCE
private final org.apache.hadoop.conf.Configuration conf
private final MetricsREST metrics
private final ConnectionCache connectionCache
private final org.apache.hadoop.security.UserGroupInformation realUser
private final JvmPauseMonitor pauseMonitor
public static final String CLEANUP_INTERVAL
public static final String MAX_IDLETIME
static final String HBASE_REST_SUPPORT_PROXYUSER
RESTServlet(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) throws IOException
conf
- existing configurationuserProvider
- the login user provider nIOException
org.apache.hadoop.security.UserGroupInformation getRealUser()
public static RESTServlet getInstance()
public ConnectionCache getConnectionCache()
public static RESTServlet getInstance(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) throws IOException
conf
- Existing configuration to use in rest servletuserProvider
- the login user providerIOException
public static void stop()
Admin getAdmin() throws IOException
IOException
Table getTable(String tableName) throws IOException
IOException
org.apache.hadoop.conf.Configuration getConfiguration()
MetricsREST getMetrics()
boolean isReadOnly()
void setEffectiveUser(String effectiveUser)
void shutdown()
boolean supportsProxyuser()
private void registerCustomFilter(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.