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