public class DatanodeHttpServer extends Object implements Closeable
Modifier and Type | Class and 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 and Description |
---|
DatanodeHttpServer(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hdfs.server.datanode.DataNode datanode,
ServerSocketChannel externalHttpChannel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InetSocketAddress |
getHttpAddress() |
InetSocketAddress |
getHttpsAddress() |
void |
start() |
public DatanodeHttpServer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hdfs.server.datanode.DataNode datanode, ServerSocketChannel externalHttpChannel) throws IOException
IOException
public InetSocketAddress getHttpAddress()
public InetSocketAddress getHttpsAddress()
public void start() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.