consumer.conf
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· CONF 代码 · 共 62 行
CONF
62 行
##---- 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_ConsumerAdmin_Command_Factory Service_Object *TAO_NotifyTests:_make_TAO_Notify_Tests_ConsumerAdmin_Command_Factory () ""
dynamic TAO_Notify_Tests_Periodic_Consumer_Command_Factory Service_Object* TAO_NotifyTests:_make_TAO_Notify_Tests_Periodic_Consumer_Command_Factory () ""
dynamic TAO_Notify_Tests_Filter_Command_Factory Service_Object* TAO_NotifyTests:_make_TAO_Notify_Tests_Filter_Command_Factory () ""
dynamic TAO_Notify_Tests_RT_POA_Command_Factory Service_Object* TAO_RT_NotifyTests:_make_TAO_Notify_Tests_RT_POA_Command_Factory () ""
##------- Init the Application Object ----------
static Command_Builder "Application -Init"
##----------- Create an RT POA to host local consumer objects-----------
static Command_Builder "POA -Create poa_1 -PriorityModel CLIENT 1 -ThreadPool 1 0"
##--------- Consumer Admin 1 -------------
static Command_Builder "ConsumerAdmin -Create ca1 ec1 -AND_OP"
static Command_Builder "ConsumerAdmin -Set_QoS ca1 -ThreadPool -Threads 1 -Priority 5"
##--------- Consumer 1 , connected to CA 1 --------
static Command_Builder "PeriodicConsumer -Create c1 -Admin ca1 -POA poa_1 -Set_QoS -ThreadPool -Threads 1 -Priority 5 -Proxy c1_proxy -MaxCount 5 -Check_Priority"
static Command_Builder "PeriodicConsumer -Subscription c1 +Path1"
static Command_Builder "Filter -CreateFilter f_c1 ff"
static Command_Builder "Filter -Add_Constraint f_c1 'PoolId = 5'"
static Command_Builder "Filter -Add_Filter f_c1 c1_proxy"
##--------- Consumer 2 , connected to CA 1 --------
static Command_Builder "PeriodicConsumer -Create c2 -Admin ca1 -POA poa_1 -Proxy c2_proxy -MaxCount 5 -Check_Priority"
static Command_Builder "PeriodicConsumer -Subscription c2 +Path2"
static Command_Builder "Filter -CreateFilter f_c2 ff"
static Command_Builder "Filter -Add_Constraint f_c2 'PoolId = 4'"
static Command_Builder "Filter -Add_Filter f_c2 c2_proxy"
##--------- Consumer Admin 2 -------------
static Command_Builder "ConsumerAdmin -Create ca2 ec1 -AND_OP"
##--------- Consumer 3 , connected to CA 2 --------
static Command_Builder "PeriodicConsumer -Create c3 -Admin ca2 -POA poa_1 -Proxy c3_proxy -MaxCount 5 -Check_Priority"
static Command_Builder "PeriodicConsumer -Subscription c3 +Path3"
static Command_Builder "Filter -CreateFilter f_c3 ff"
static Command_Builder "Filter -Add_Constraint f_c3 'PoolId = 1'"
static Command_Builder "Filter -Add_Filter f_c3 c3_proxy"
##------- Run---------
static Command_Builder "Application -SignalPeer"
static Command_Builder "Application -Run"
static Command_Builder "Application -WaitForEvents"
static Command_Builder "Application -Shutdown"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?