/**
 * This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin. 
 * If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
 * Website: https://developer.kingdee.com/developer?productLineId=29
 * Author: liebin.zheng
 * Generate Date: 2025-09-12 13:41:38
 */
package uzi9.cosmic.debug;

import kd.bos.security.KDSecurityClassLoader;
import kd.cosmic.debug.tools.CosmicLauncher;

/**
 * 启动本地应用程序(微服务节点)
 */
public class DebugApplication  {
	
	

    public static void main(String[] args) {

    	//Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader()));

        CosmicLauncher cosmic = new CosmicLauncher(false);
        //服务ip
        String ip1="192.168.1.250";
//        String ip1="192.168.10.2";
        cosmic.setClusterNumber("cosmic");
        cosmic.setTenantNumber("ierp");
//        cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=xxx");
        cosmic.setConfigUrl("192.168.1.250:2181?user=zookeeper&password=Free1100");
//        cosmic.setMcServerUrl("http://127.0.0.1:8090");
        cosmic.setMcServerUrl("http://192.168.1.250:8095/");

        cosmic.setFsServerUrl("127.0.0.1", 8100);
        cosmic.setImageServerUrl("127.0.0.1", 8100);
//        cosmic.setFsServerUrl(ip1, 8100);
//        cosmic.setImageServerUrl(ip1, 8100);
        //自定义本地苍穹调试服务的端口
        cosmic.setCosmicWebPort(8881);
//        cosmic.setCosmicWebURL("http://"+ip1,7080);
        cosmic.setDubboConfig(false, true, true);
//MQ
        cosmic.setMqHostConfig("192.168.1.250","5672","admin","123456","cangqiong");
        cosmic.setMqConsumerRegister(true,ip1);
        System.setProperty("dubbo.registry.register", "true");
        System.setProperty("mq.consumer.register", "true");
        System.setProperty("mq.debug.queue.tag", ip1);
        System.setProperty("mqConfigFiles.config", "queue/consummqconfig.xml");
//Redis
        cosmic.setRedisConfig("192.168.1.250:6379");
        cosmic.start();
        
        
    }

}