@InterfaceAudience.Private public class InfoServer extends java.lang.Object
| Constructor and Description |
|---|
InfoServer(java.lang.String name,
java.lang.String bindAddress,
int port,
boolean findPort,
Configuration c)
Create a status server on the given port.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addServlet(java.lang.String name,
java.lang.String pathSpec,
java.lang.Class<? extends HttpServlet> clazz) |
int |
getPort()
Deprecated.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
start() |
void |
stop() |
public InfoServer(java.lang.String name,
java.lang.String bindAddress,
int port,
boolean findPort,
Configuration c)
throws java.io.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.java.io.IOException - epublic void addServlet(java.lang.String name,
java.lang.String pathSpec,
java.lang.Class<? extends HttpServlet> clazz)
public void setAttribute(java.lang.String name,
java.lang.Object value)
public void start()
throws java.io.IOException
java.io.IOException@Deprecated public int getPort()
public void stop()
throws java.lang.Exception
java.lang.Exception