实现服务的配置与接口的增删改查
This commit is contained in:
21
src/com/dayrain/server/ServerThread.java
Normal file
21
src/com/dayrain/server/ServerThread.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.dayrain.server;
|
||||
|
||||
import com.dayrain.entity.Server;
|
||||
import com.dayrain.entity.ServerUrl;
|
||||
|
||||
public class ServerThread extends Thread {
|
||||
private final Server server;
|
||||
|
||||
public ServerThread(Server server) {
|
||||
super(server);
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
public void stopServer() {
|
||||
server.stop();
|
||||
}
|
||||
|
||||
public void addContext(ServerUrl serverUrl) {
|
||||
server.addContext(serverUrl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user