xiongzhu пре 4 година
родитељ
комит
936eee765c

+ 2 - 0
o2server/x_base_core_project/src/main/java/com/x/base/core/project/Context.java

@@ -292,11 +292,13 @@ public class Context extends AbstractContext {
 	}
 
 	private void initDatas() throws Exception {
+		System.out.println("=================start loading datas=================");
 		if (ArrayUtils.isNotEmpty(this.module.containerEntities())) {
 			logger.print("{} loading datas, entity size:{}.", this.clazz.getName(),
 					this.module.containerEntities().length);
 			EntityManagerContainerFactory.init(path, ListTools.toList(this.module.containerEntities()));
 		}
+
 	}
 
 	public void destrory(ServletContextEvent servletContextEvent) {

+ 17 - 0
o2server/x_console/src/main/java/com/x/server/console/Main.java

@@ -100,18 +100,35 @@ public class Main {
 	}, "consoleCommandThread");
 
 	private static void init() throws Exception {
+		System.out.println("=================getBasePath=================");
 		String base = getBasePath();
+
+		System.out.println("=================pid=================");
 		pid(base);
+
+		System.out.println("=================scanWar=================");
 		scanWar(base);
+
+		System.out.println("=================cleanTempDir=================");
 		cleanTempDir(base);
+
+		System.out.println("=================createTempClassesDirectory=================");
 		createTempClassesDirectory(base);
+
+		System.out.println("=================SystemOutErrorSideCopyBuilder=================");
 		SystemOutErrorSideCopyBuilder.start();
+
+		System.out.println("=================LogTools=================");
 		LogTools.setSlf4jSimple();
+
+		System.out.println("=================ResourceFactory=================");
 		ResourceFactory.bind();
+
 		CommandFactory.printStartHelp();
 	}
 
 	public static void main(String[] args) throws Exception {
+		System.out.println("=================系统启动=================");
 		init();
 		if (null == Config.currentNode()) {
 			throw new Exception("无法找到当前节点,请检查config/node_{name}.json与local/node.cfg文件内容中的名称是否一致.");

+ 1 - 1
o2server/x_console/src/main/java/com/x/server/console/server/application/ApplicationServerTools.java

@@ -105,7 +105,7 @@ public class ApplicationServerTools extends JettySeverTools {
 			x_query_assemble_designer.class.getName(), x_query_assemble_surface.class.getName());
 
 	public static Server start(ApplicationServer applicationServer) throws Exception {
-
+		System.out.println("=================启动Application=================");
 		List<ClassInfo> officialClassInfos = listOfficial();
 
 		List<String> customNames = listCustom();

+ 1 - 1
o2server/x_console/src/main/java/com/x/server/console/server/center/CenterServerTools.java

@@ -43,7 +43,7 @@ public class CenterServerTools extends JettySeverTools {
 	private static final int CENTERSERVER_THREAD_POOL_SIZE_MAX = 500;
 
 	public static Server start(CenterServer centerServer) throws Exception {
-
+		System.out.println("=================启动Center=================");
 		cleanWorkDirectory();
 
 		HandlerList handlers = new HandlerList();

+ 1 - 0
o2server/x_console/src/main/java/com/x/server/console/server/data/DataServerTools.java

@@ -16,6 +16,7 @@ public class DataServerTools {
 	private static Logger logger = LoggerFactory.getLogger(DataServerTools.class);
 
 	public static DataTcpWebServer start(DataServer dataServer) throws Exception {
+		System.out.println("=================启动Data=================");
 		File dataBaseDir = new File(Config.base(), "local/repository/data");
 		FileUtils.forceMkdir(dataBaseDir);
 		Server tcpServer = null;

+ 1 - 0
o2server/x_console/src/main/java/com/x/server/console/server/storage/StorageServerTools.java

@@ -31,6 +31,7 @@ public class StorageServerTools {
 	private static Logger logger = LoggerFactory.getLogger(StorageServerTools.class);
 
 	public static FtpServer start(StorageServer storageServer) throws Exception {
+		System.out.println("=================启动Storage=================");
 		/** 服务器工厂 */
 		FtpServerFactory serverFactory = new FtpServerFactory();
 		/*** 连接工厂 */

+ 1 - 1
o2server/x_console/src/main/java/com/x/server/console/server/web/WebServerTools.java

@@ -44,7 +44,7 @@ public class WebServerTools extends JettySeverTools {
 	private static final String MAP_LOGINPAGE = "loginPage";
 
 	public static Server start(WebServer webServer) throws Exception {
-
+		System.out.println("=================启动WEB=================");
 		// 更新web服务配置信息
 		WebServers.updateWebServerConfigJson();
 		// 更新 favicon.ico