public class WebImageViewer extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
WebImageViewer(InetSocketAddress address) |
| 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 static final org.apache.commons.logging.Log LOG
public WebImageViewer(InetSocketAddress address)
public void start(String fsimage) throws IOException
fsimage - the fsimage to load.IOException - if failed to load the fsimage.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 © 2018 CERN. All Rights Reserved.