MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / Server

Method Server

src/helper/one/profiler/Server.java:25–37  ·  view source on GitHub ↗
(String address)

Source from the content-addressed store, hash-verified

23 private final AtomicInteger threadNum = new AtomicInteger();
24
25 private Server(String address) throws IOException {
26 super("Async-profiler Server");
27 setDaemon(true);
28
29 int p = address.lastIndexOf(':');
30 InetSocketAddress socketAddress = p >= 0
31 ? new InetSocketAddress(address.substring(0, p), Integer.parseInt(address.substring(p + 1)))
32 : new InetSocketAddress(Integer.parseInt(address));
33
34 server = HttpServer.create(socketAddress, 0);
35 server.createContext("/", this);
36 server.setExecutor(this);
37 }
38
39 public static void start(String address) throws IOException {
40 new Server(address).start();

Callers

nothing calls this directly

Calls 1

createMethod · 0.80

Tested by

no test coverage detected