@InterfaceAudience.Private public class InfoServer extends Object
| 构造器和说明 |
|---|
InfoServer(String name,
String bindAddress,
int port,
boolean findPort,
org.apache.hadoop.conf.Configuration c)
Create a status server on the given port.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addServlet(String name,
String pathSpec,
Class<? extends javax.servlet.http.HttpServlet> clazz) |
int |
getPort()
已过时。
|
void |
setAttribute(String name,
Object value) |
void |
start() |
void |
stop() |
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–2021 The Apache Software Foundation. All rights reserved.