类 Server
- java.lang.Object
-
- com.alibaba.dubbo.qos.server.Server
-
public class Server extends Object
A server serves for both telnet access and http access- static initialize server
- start server and bind port
- close server
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static Server
getInstance()
int
getPort()
String
getWelcome()
boolean
isAcceptForeignIp()
void
setAcceptForeignIp(boolean acceptForeignIp)
void
setPort(int port)
void
setWelcome(String welcome)
welcome messagevoid
start()
start server, bind portvoid
stop()
close server
-
-
-
方法详细资料
-
getInstance
public static final Server getInstance()
-
setWelcome
public void setWelcome(String welcome)
welcome message
-
getPort
public int getPort()
-
stop
public void stop()
close server
-
setPort
public void setPort(int port)
-
isAcceptForeignIp
public boolean isAcceptForeignIp()
-
setAcceptForeignIp
public void setAcceptForeignIp(boolean acceptForeignIp)
-
getWelcome
public String getWelcome()
-
-