@InterfaceAudience.Private public class InfoServer extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
HBASE_APP_DIR |
private HttpServer |
httpServer |
Constructor and Description |
---|
InfoServer(String name,
String bindAddress,
int port,
boolean findPort,
org.apache.hadoop.conf.Configuration c)
Create a status server on the given port.
|
Modifier and Type | Method and Description |
---|---|
void |
addServlet(String name,
String pathSpec,
Class<? extends javax.servlet.http.HttpServlet> clazz) |
int |
getPort()
Deprecated.
|
void |
setAttribute(String name,
Object value) |
void |
start() |
void |
stop() |
private static final String HBASE_APP_DIR
private final HttpServer httpServer
public InfoServer(String name, String bindAddress, int port, boolean findPort, org.apache.hadoop.conf.Configuration c) throws IOException
name
.name
- The name of the serverbindAddress
- address to bind toport
- The port to use on the serverfindPort
- whether the server should start at the given port and
increment by 1 until it finds a free port.IOException
- epublic void addServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> clazz)
public void start() throws IOException
IOException
@Deprecated public int getPort()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.