From 9423f2936340d82b046ec615381c1c5e03698557 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期五, 27 九月 2024 17:56:53 +0800
Subject: [PATCH] 1、主要完成对获取UI上下文的定义接口的优化,优化的方向为对多次获取业务类型对象进行转换而导致耗时较久的问题继续修改,还有对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 2、对树的数据查询接口的优化,对多次获取属性对象进行转换对象导致耗时过长问题进行修改。

---
 Source/Service/ServiceBase/src/com/vci/server/base/utility/ServerServiceProvider.java |   44 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/Source/Service/ServiceBase/src/com/vci/server/base/utility/ServerServiceProvider.java b/Source/Service/ServiceBase/src/com/vci/server/base/utility/ServerServiceProvider.java
index 21ac8dc..5af0ce8 100644
--- a/Source/Service/ServiceBase/src/com/vci/server/base/utility/ServerServiceProvider.java
+++ b/Source/Service/ServiceBase/src/com/vci/server/base/utility/ServerServiceProvider.java
@@ -7,12 +7,13 @@
 import com.vci.common.resource.IceClientProperties;
 import com.vci.corba.common.VCIError;
 import com.vci.corba.bofactory.BOFactoryServicePrx;
-import com.vci.corba.framework.method.FrameworkServicePrx;
+import com.vci.corba.framework.FrameworkServicePrx;
+import com.vci.corba.log.LogServicePrx;
 import com.vci.corba.omd.OMDServicePrx;
 import com.vci.corba.portal.PortalServicePrx;
 import com.vci.corba.query.ObjectQueryServicePrx;
 import com.vci.corba.volume.VolumeServicePrx;
-import com.vci.corba.workflow.method.WorkflowServicePrx;
+import com.vci.corba.workflow.WorkflowServicePrx;
 import com.zeroc.Ice.Communicator;
 import com.zeroc.Ice.Current;
 import com.zeroc.Ice.ObjectPrx;
@@ -65,6 +66,45 @@
 	}
 	
 	/**
+	 * 鑾峰彇绯荤粺璇ユ鏋舵湇鍔′唬鐞�
+	 * @return
+	 */
+	public static LogServicePrx getLogService(Current current)  {
+		try {
+			ObjectPrx prx = getObjectByName(current.adapter.getCommunicator(), ServiceNames.LOGSERVICE);
+			
+			LogServicePrx prxTemp = LogServicePrx.uncheckedCast(prx);
+			return prxTemp.ice_context(current.ctx);
+		} catch (Exception e) {
+			//e.printStackTrace();
+			ServerWithLog4j.logger.error(e);
+		}
+		
+		return null;
+	}
+	
+	/**
+	 * 鑾峰彇绯荤粺璇ユ鏋舵湇鍔′唬鐞�
+	 * @return
+	 * @throws Exception 
+	 */
+	public static LogServicePrx getLogService() throws VCIError  {
+		try {
+			Current current = threadLocal.get();
+			if (current == null)
+				throw new VCIError("ServerServiceProvider-0001", new String[] {"鑾峰彇褰撳墠涓婁笅鏂囧け璐ワ紒"});
+			
+			ObjectPrx prx = getObjectByName(current.adapter.getCommunicator(), ServiceNames.LOGSERVICE);
+			
+			LogServicePrx prxTemp = LogServicePrx.uncheckedCast(prx);
+			return prxTemp.ice_context(current.ctx);
+		} catch (VCIError e) {
+			//e.printStackTrace();
+			ServerWithLog4j.logger.error(e);
+			throw e;
+		}
+	}	
+	/**
 	 * 鑾峰彇绯荤粺鎺堟潈璁よ瘉妗嗘灦鏈嶅姟浠g悊
 	 * @return
 	 */

--
Gitblit v1.9.3