public class WebImageViewer extends Object implements Closeable
| Modifier and Type | Field and Description | 
|---|---|
| static org.slf4j.Logger | LOG | 
| Constructor and Description | 
|---|
| WebImageViewer(InetSocketAddress address) | 
| WebImageViewer(InetSocketAddress address,
              org.apache.hadoop.conf.Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| int | getPort()Get the listening port. | 
| void | initServer(String fsimage)Start WebImageViewer. | 
| void | start(String fsimage)Start WebImageViewer and wait until the thread is interrupted. | 
public WebImageViewer(InetSocketAddress address)
public WebImageViewer(InetSocketAddress address, org.apache.hadoop.conf.Configuration conf)
public void start(String fsimage) throws IOException
fsimage - the fsimage to load.IOException - if failed to load the fsimage.RuntimeException - if security is enabled in configuration.public void initServer(String fsimage) throws IOException, InterruptedException
fsimage - the fsimage to load.IOException - if fail to load the fsimage.InterruptedExceptionpublic int getPort()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2008–2023 Apache Software Foundation. All rights reserved.