|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.tools.offlineImageViewer.WebImageViewer
public class WebImageViewer
WebImageViewer loads a fsimage and exposes read-only WebHDFS API for its namespace.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
WebImageViewer(InetSocketAddress address)
|
Method Summary | |
---|---|
int |
getPort()
Get the listening port. |
void |
initServer(String fsimage)
Start WebImageViewer. |
void |
initServerAndWait(String fsimage)
Start WebImageViewer and wait until the thread is interrupted. |
void |
shutdown()
Stop WebImageViewer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public WebImageViewer(InetSocketAddress address)
Method Detail |
---|
public void initServerAndWait(String fsimage) throws IOException
fsimage
- the fsimage to load.
IOException
- if failed to load the fsimage.public void initServer(String fsimage) throws IOException
fsimage
- the fsimage to load.
IOException
- if fail to load the fsimage.public void shutdown()
public int getPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |