这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料

源代码在线查看: supplier.conf

软件大小: 29384 K
上传用户: captainjn
关键词: qos 通信 开源 大容量
下载地址: 免注册下载 普通下载 VIP

相关代码

				## supplier.conf,v 1.5 2003/07/06 21:41:57 pradeep Exp
				## This file has the following configuration:
				## EventChannel ec1 with 1 Thread
				## SupplierAdmim sa1 with 1 Thread
				## SupplierAdmin sa2
				##
				## Supplier s1 has 1 Thread and is connected to sa1
				## Supplier s2 is connected to sa1
				##
				## Supplier s3 is connected to sa2
				##
				
				##---- Load the Factories------
				dynamic TAO_RT_ORB_Loader Service_Object *TAO_RTCORBA:_make_TAO_RT_ORB_Loader () "-ORBPriorityMapping continuous"         
				
				# Uncomment this line to use SCHED_FIFO
				#dynamic TAO_RT_ORB_Loader Service_Object * TAO_RTCORBA:_make_TAO_RT_ORB_Loader () "-ORBSchedPolicy SCHED_FIFO -ORBScopePolicy PROCESS -ORBPriorityMapping continuous"
				
				dynamic TAO_Notify_Tests_RT_Application_Command_Factory Service_Object * TAO_RT_NotifyTests:_make_TAO_Notify_Tests_RT_Application_Command_Factory () ""
				##dynamic TAO_Notify_Tests_Application_Command_Factory Service_Object * TAO_NotifyTests:_make_TAO_Notify_Tests_Application_Command_Factory () ""
				dynamic TAO_Notify_Tests_EventChannel_Command_Factory Service_Object *TAO_NotifyTests:_make_TAO_Notify_Tests_EventChannel_Command_Factory () ""
				dynamic TAO_Notify_Tests_SupplierAdmin_Command_Factory Service_Object* TAO_NotifyTests:_make_TAO_Notify_Tests_SupplierAdmin_Command_Factory () ""
				
				dynamic TAO_Notify_Tests_Periodic_Supplier_Command_Factory Service_Object* TAO_NotifyTests:_make_TAO_Notify_Tests_Periodic_Supplier_Command_Factory () ""
				dynamic TAO_Notify_Tests_Filter_Command_Factory Service_Object* TAO_NotifyTests:_make_TAO_Notify_Tests_Filter_Command_Factory () ""
				
				##------- Init the Application Object ----------
				static Command_Builder "Application -Init"
				
				##------- Create Event Channel ---------------
				static Command_Builder "EventChannel -Create ec1 NotifyEventChannelFactory"
				static Command_Builder "EventChannel -Set_QoS ec1 -ThreadPool -Threads 1 -Priority 0"
				static Command_Builder "Filter -CreateFactory ff ec1"
				
				### --- Create Supplier Admin 1 ----
				static Command_Builder "SupplierAdmin -Create sa1 ec1 -AND_OP"
				static Command_Builder "SupplierAdmin -Set_QoS sa1 -ThreadPool -Threads 1 -Priority 2"
				
				### --- Create Supplier s1 connected to sa1. It has its own Thread ----
				static Command_Builder "PeriodicSupplier -Create s1 -Admin sa1 -Set_QoS -ThreadPool -Threads 1 -Priority 5 -Proxy s1_proxy -EventType Path1 -Priority 1 -Period 10000 -ExecTime 10000 -Phase 0 -Iter 5 -Load 1 "
				
				static Command_Builder "Filter -CreateFilter f1 ff"
				static Command_Builder "Filter -Add_Constraint f1 'PoolId = 3'"
				static Command_Builder "Filter -Add_Filter f1 s1_proxy"
				
				### --- Create Supplier s2 connected to sa1 ----
				static Command_Builder "PeriodicSupplier -Create s2 -Admin sa1 -Proxy s2_proxy -EventType Path2 -Priority 3 -Period 10000 -ExecTime 10000 -Phase 0 -Iter 5 -Load 1 "
				
				static Command_Builder "Filter -CreateFilter f2 ff"
				static Command_Builder "Filter -Add_Constraint f2 'PoolId = 2'"
				static Command_Builder "Filter -Add_Filter f2 s2_proxy"
				
				### --- Create Supplier Admin 2 ----
				static Command_Builder "SupplierAdmin -Create sa2 ec1 -AND_OP"
				
				### --- Create Supplier s3 connected to sa2 ----
				static Command_Builder "PeriodicSupplier -Create s3 -Admin sa2 -Proxy s3_proxy -EventType Path3 -Priority 6 -Period 10000 -ExecTime 10000 -Phase 0 -Iter 5 -Load 1 "
				static Command_Builder "Filter -CreateFilter f3 ff"
				static Command_Builder "Filter -Add_Constraint f3 'PoolId = 1'"
				static Command_Builder "Filter -Add_Filter f3 s3_proxy"
				
				##--------- Run -------------
				static Command_Builder "Application -WaitToStart"
				static Command_Builder "Application -Run"
				static Command_Builder "Application -WaitForEvents"
				static Command_Builder "Application -Shutdown"
							

相关资源