MCPcopy Create free account
hub / github.com/e2wugui/zeze / main

Method main

ZezeJava/ZezeJavaTest/src/Temp/TestProcessDaemon.java:14–24  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

12 public final static String ProcessDaemonMMap = "Zeze.ProcessDaemon.MMap";
13
14 public static void main(String[] args) throws Exception {
15 var port = System.getProperties().get(ProcessDaemonPort);
16 System.out.println("Start...");
17 if (null != port) {
18 System.out.println("subProcess peer=" + port);
19 subProcess(Integer.parseInt((String)port));
20 } else {
21 System.out.println("DaemonProcess daemon");
22 daemonProcess();
23 }
24 }
25
26 private static void subProcess(int peer) throws Exception {
27 var udp = new DatagramSocket(0, InetAddress.getLoopbackAddress());

Callers

nothing calls this directly

Calls 5

subProcessMethod · 0.95
daemonProcessMethod · 0.95
parseIntMethod · 0.80
getMethod · 0.65
getPropertiesMethod · 0.45

Tested by

no test coverage detected