java.io.Closeable, java.lang.AutoCloseablepublic class DatanodeHttpServer
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DatanodeHttpServer.MapBasedFilterConfig |
Since the DataNode HTTP server is not implemented in terms of the
servlet API, it
takes some extra effort to obtain an instance of the filter.
|
| Constructor | Description |
|---|---|
DatanodeHttpServer(org.apache.hadoop.conf.Configuration conf,
DataNode datanode,
java.nio.channels.ServerSocketChannel externalHttpChannel) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
java.net.InetSocketAddress |
getHttpAddress() |
|
java.net.InetSocketAddress |
getHttpsAddress() |
|
void |
start() |
public DatanodeHttpServer(org.apache.hadoop.conf.Configuration conf,
DataNode datanode,
java.nio.channels.ServerSocketChannel externalHttpChannel)
throws java.io.IOException
java.io.IOExceptionpublic java.net.InetSocketAddress getHttpAddress()
public java.net.InetSocketAddress getHttpsAddress()
public void start()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.