@InterfaceAudience.Private public class NameNodeHttpServer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FSIMAGE_ATTRIBUTE_KEY |
static String |
NAMENODE_ADDRESS_ATTRIBUTE_KEY |
protected static String |
NAMENODE_ATTRIBUTE_KEY |
static String |
STARTUP_PROGRESS_ATTRIBUTE_KEY |
Constructor and Description |
---|
NameNodeHttpServer(Configuration conf,
NameNode nn,
InetSocketAddress bindAddress) |
Modifier and Type | Method and Description |
---|---|
static Configuration |
getConfFromContext(javax.servlet.ServletContext context) |
static FSImage |
getFsImageFromContext(javax.servlet.ServletContext context) |
InetSocketAddress |
getHttpAddress() |
static InetSocketAddress |
getNameNodeAddressFromContext(javax.servlet.ServletContext context) |
static NameNode |
getNameNodeFromContext(javax.servlet.ServletContext context) |
static StartupProgress |
getStartupProgressFromContext(javax.servlet.ServletContext context)
Returns StartupProgress associated with ServletContext.
|
void |
setFSImage(FSImage fsImage)
Sets fsimage for use by servlets.
|
void |
setNameNodeAddress(InetSocketAddress nameNodeAddress)
Sets address of namenode for use by servlets.
|
void |
setStartupProgress(StartupProgress prog)
Sets startup progress of namenode for use by servlets.
|
void |
start() |
void |
stop() |
public static final String NAMENODE_ADDRESS_ATTRIBUTE_KEY
public static final String FSIMAGE_ATTRIBUTE_KEY
protected static final String NAMENODE_ATTRIBUTE_KEY
public static final String STARTUP_PROGRESS_ATTRIBUTE_KEY
public NameNodeHttpServer(Configuration conf, NameNode nn, InetSocketAddress bindAddress)
public void start() throws IOException
IOException
public InetSocketAddress getHttpAddress()
public void setFSImage(FSImage fsImage)
fsImage
- FSImage to setpublic void setNameNodeAddress(InetSocketAddress nameNodeAddress)
nameNodeAddress
- InetSocketAddress to setpublic void setStartupProgress(StartupProgress prog)
prog
- StartupProgress to setpublic static FSImage getFsImageFromContext(javax.servlet.ServletContext context)
public static NameNode getNameNodeFromContext(javax.servlet.ServletContext context)
public static Configuration getConfFromContext(javax.servlet.ServletContext context)
public static InetSocketAddress getNameNodeAddressFromContext(javax.servlet.ServletContext context)
public static StartupProgress getStartupProgressFromContext(javax.servlet.ServletContext context)
context
- ServletContext to getCopyright © 2013 Apache Software Foundation. All rights reserved.