@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.
|
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.