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

Method Stop

ZezeJava/ZezexJava/server/src/Game/App.java:139–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 public void Stop() throws Exception {
140 Task.call(Zeze.newProcedure(() -> {
141 //logger.info("XYZ Stop cancel={}", coldTimerId);
142 Zeze.getTimer().cancel(coldTimerId);
143 return 0;
144 }, "cancelColdTimer"));
145
146 if (Provider != null)
147 Provider.stop();
148 stopModules(); // 关闭模块,卸载配置什么的。
149 if (Zeze != null) {
150 Zeze.stop(); // 关闭数据库
151 if (DepartmentTreeModule != null) {
152 DepartmentTreeModule.UnRegisterZezeTables(Zeze);
153 DepartmentTreeModule = null;
154 }
155 if (LinkedMapModule != null) {
156 LinkedMapModule.UnRegisterZezeTables(Zeze);
157 LinkedMapModule = null;
158 }
159 }
160 stopService(); // 关闭网络
161 destroyModules();
162 destroyServices();
163 destroyZeze();
164 }
165
166 // ZEZE_FILE_CHUNK {{{ GEN APP @formatter:off
167 public Zeze.Application Zeze;

Callers 2

mainMethod · 0.45
stopModulesMethod · 0.45

Calls 11

callMethod · 0.95
stopModulesMethod · 0.95
stopServiceMethod · 0.95
destroyModulesMethod · 0.95
destroyServicesMethod · 0.95
destroyZezeMethod · 0.95
cancelMethod · 0.65
stopMethod · 0.65
newProcedureMethod · 0.45
getTimerMethod · 0.45
UnRegisterZezeTablesMethod · 0.45

Tested by

no test coverage detected