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