HBASE-979 REST web app is not started automatically

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@710110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-11-03 17:37:20 +00:00
parent 59a2ad7eac
commit f806f7fdea
2 changed files with 7 additions and 1 deletions

View File

@ -59,6 +59,7 @@ Release 0.19.0 - Unreleased
HBASE-969 Won't when storefile > 2G.
HBASE-976 HADOOP 0.19.0 RC0 is broke; replace with HEAD of branch-0.19
HBASE-977 Arcane HStoreKey comparator bug
HBASE-979 REST web app is not started automatically
IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -34,7 +34,7 @@ import org.mortbay.http.handler.ResourceHandler;
* "/static/" -> points to common static files (src/webapps/static)
* "/" -> the jsp server code from (src/webapps/<name>)
*/
public class InfoServer extends HttpServer{
public class InfoServer extends HttpServer {
/**
* Create a status server on the given port.
* The jsp scripts are taken from src/webapps/<code>name<code>.
@ -56,6 +56,11 @@ public class InfoServer extends HttpServer{
logContext.addHandler(new ResourceHandler());
webServer.addContext(logContext);
}
if (name.equals("master")) {
// Put up the rest webapp.
webServer.addWebApplication("/api", getWebAppDir("rest"));
}
}
/**