| | |
| | | import java.io.IOException; |
| | | import java.util.logging.Logger; |
| | | import java.net.InetSocketAddress; |
| | | import java.util.concurrent.Executors; |
| | | |
| | | /** |
| | | * |
| | |
| | | server.createContext("/avd/pause", new CmdHandler(App.CMD_PAUSE_RESUME)); |
| | | server.createContext("/avd/ping", new PingHandler()); |
| | | server.createContext("/avd/server/stop", new StopServerHandler()); |
| | | server.setExecutor(null); // creates a default executor |
| | | //server.setExecutor(null); // creates a default executor |
| | | server.setExecutor(Executors.newFixedThreadPool(20)); |
| | | server.start(); |
| | | } |
| | | |