org.apache.hadoop.hbase.rest
Class RESTServlet

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.RESTServlet
All Implemented Interfaces:
Constants

@InterfaceAudience.Private
public class RESTServlet
extends Object
implements Constants

Singleton class encapsulating global REST servlet state and functions.


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.rest.Constants
CRLF, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, REST_AUTHENTICATION_PRINCIPAL, REST_AUTHENTICATION_TYPE, REST_DNS_INTERFACE, REST_DNS_NAMESERVER, REST_KERBEROS_PRINCIPAL, REST_KEYTAB_FILE, REST_SSL_ENABLED, REST_SSL_KEYSTORE_KEYPASSWORD, REST_SSL_KEYSTORE_PASSWORD, REST_SSL_KEYSTORE_STORE, VERSION_STRING
 
Method Summary
static RESTServlet getInstance()
           
static RESTServlet getInstance(org.apache.hadoop.conf.Configuration conf)
           
static RESTServlet getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.UserGroupInformation ugi)
           
static void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RESTServlet getInstance()
                               throws IOException
Returns:
the RESTServlet singleton instance
Throws:
IOException

getInstance

public static RESTServlet getInstance(org.apache.hadoop.conf.Configuration conf)
                               throws IOException
Parameters:
conf - Existing configuration to use in rest servlet
Returns:
the RESTServlet singleton instance
Throws:
IOException

getInstance

public static RESTServlet getInstance(org.apache.hadoop.conf.Configuration conf,
                                      org.apache.hadoop.security.UserGroupInformation ugi)
                               throws IOException
Throws:
IOException

stop

public static void stop()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.