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

Method start

ZezeJava/ZezeJava/src/main/java/Zeze/MQ/MQManager.java:71–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 public void start() throws Exception {
72 ShutdownHook.add(this, this::stop);
73 logger.info("start MQManager from '{}'", home);
74 loadMQ();
75 masterAgent.startAndWaitConnectionReady();
76 var acceptorAddress = masterService.getAcceptorAddress();
77 masterAgent.register(acceptorAddress.getKey(), acceptorAddress.getValue(), queueCount());
78 proxyServer.start();
79
80 loadMonitorTimer = Task.scheduleUnsafe(120_000, 120_000, this::loadMonitor);
81 }
82
83 public void stop() throws Exception {
84 if (null != loadMonitorTimer)

Callers 1

testMQMethod · 0.95

Calls 10

addMethod · 0.95
loadMQMethod · 0.95
queueCountMethod · 0.95
scheduleUnsafeMethod · 0.95
getKeyMethod · 0.65
getValueMethod · 0.65
startMethod · 0.65
getAcceptorAddressMethod · 0.45
registerMethod · 0.45

Tested by 1

testMQMethod · 0.76