Class InfoServer

java.lang.Object
org.apache.hadoop.hbase.http.InfoServer

@Private public class InfoServer extends Object
Create a Jetty embedded server to answer http requests. The primary goal is to serve up status information for the server. There are three contexts: "/stacks/" -> points to stack trace "/static/" -> points to common static files (src/hbase-webapps/static) "/" -> the jsp server code from (src/hbase-webapps/<name>)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
    private final HttpServer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InfoServer(String name, String bindAddress, int port, boolean findPort, org.apache.hadoop.conf.Configuration c)
    Create a status server on the given port.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPrivilegedServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> clazz)
    Adds a servlet in the server that any user can access.
    void
    addServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> clazz)
    Deprecated.
    Use addUnprivilegedServlet(String, String, Class) or addPrivilegedServlet(String, String, Class) instead of this method which does not state outwardly what kind of authz rules will be applied to this servlet.
    void
    addUnprivilegedServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> clazz)
    Adds a servlet in the server that any user can access.
    void
    addUnprivilegedServlet(String name, String pathSpec, org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletHolder holder)
    Adds a servlet in the server that any user can access.
    (package private) org.apache.hadoop.security.authorize.AccessControlList
    buildAdminAcl(org.apache.hadoop.conf.Configuration conf)
    Builds an ACL that will restrict the users who can issue commands to endpoints on the UI which are meant only for administrators.
    static boolean
    canUserModifyUI(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletContext ctx, org.apache.hadoop.conf.Configuration conf)
    Returns true if and only if UI authentication (spnego) is enabled, UI authorization is enabled, and the requesting user is defined as an administrator.
    int
    Deprecated.
    Since 0.99.0
    void
    setAttribute(String name, Object value)
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait