From 993ff1e0a7f1b391dc714eda5d570404a20560ad Mon Sep 17 00:00:00 2001
From: dai_y
Date: Wed, 28 Oct 2009 23:29:32 +0000
Subject: Wed Oct 28 23:27:02 UTC 2009 Yan Dai
---
TAO/ChangeLog | 72 +++++
TAO/MPC/config/negotiate_codesets.mpb | 1 +
TAO/MPC/config/notify_monitor_control.mpb | 8 +
TAO/MPC/config/tao_notify_service.mpb | 2 +-
TAO/docs/notification/monitor.html | 49 +++-
TAO/interop-tests/wchar/Client.java | 13 +-
TAO/interop-tests/wchar/interop_wchar.mpc | 2 +-
TAO/interop-tests/wchar/server.cpp | 21 +-
TAO/orbsvcs/Notify_Service/Notify_Service.cpp | 20 ++
TAO/orbsvcs/Notify_Service/Notify_Service.mpc | 6 +-
.../orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp | 10 +
.../orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h | 1 +
.../orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp | 11 +-
.../orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h | 1 +
.../orbsvcs/Notify/Any/ProxyPushConsumer.cpp | 10 +
TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h | 2 +
.../orbsvcs/Notify/Any/ProxyPushSupplier.cpp | 11 +
TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h | 1 +
TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp | 59 ++++-
TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.h | 6 +
TAO/orbsvcs/orbsvcs/Notify/Builder.cpp | 5 +-
TAO/orbsvcs/orbsvcs/Notify/Consumer.h | 11 +-
TAO/orbsvcs/orbsvcs/Notify/Consumer.inl | 7 +
.../Notify/MonitorControl/MonitorManager.cpp | 24 +-
.../orbsvcs/Notify/MonitorControl/MonitorManager.h | 2 +
.../NotificationServiceMonitor_i.cpp | 6 +
.../MonitorControlExt/MC_Default_Factory.cpp | 26 ++
.../Notify/MonitorControlExt/MC_Default_Factory.h | 11 +
.../Notify/MonitorControlExt/MC_Notify_Service.cpp | 6 +
.../Notify/MonitorControlExt/MC_Notify_Service.h | 8 +
.../MonitorControlExt/MonitorConsumerAdmin.cpp | 117 +++++---
.../MonitorControlExt/MonitorConsumerAdmin.h | 18 +-
.../MonitorControlExt/MonitorEventChannel.cpp | 54 ++--
.../MonitorControlExt/MonitorProxyPushSupplier.h | 27 ++
.../MonitorControlExt/MonitorProxySupplier_T.cpp | 164 ++++++++++++
.../MonitorControlExt/MonitorProxySupplier_T.h | 89 +++++++
.../MonitorSequenceProxyPushSupplier.h | 27 ++
.../MonitorStructuredProxyPushSupplier.h | 30 +++
.../MonitorControlExt/NotifyMonitoringExt.idl | 10 +-
.../Notify/Sequence/SequenceProxyPushConsumer.cpp | 10 +
.../Notify/Sequence/SequenceProxyPushConsumer.h | 1 +
.../Notify/Sequence/SequenceProxyPushSupplier.cpp | 9 +
.../Notify/Sequence/SequenceProxyPushSupplier.h | 2 +
.../Structured/StructuredProxyPushConsumer.cpp | 11 +
.../Structured/StructuredProxyPushConsumer.h | 2 +
.../Structured/StructuredProxyPushSupplier.cpp | 9 +
.../Structured/StructuredProxyPushSupplier.h | 2 +
.../Notify/MC/Notify_Structured_Push_Consumer.cpp | 28 ++
.../Notify/MC/Notify_Structured_Push_Consumer.h | 3 +
.../tests/Notify/MC/Structured_Consumer.cpp | 30 ++-
.../tests/Notify/MC/Structured_Supplier.cpp | 8 +-
TAO/orbsvcs/tests/Notify/MC/notify.conf | 1 +
TAO/orbsvcs/tests/Notify/MC/run_test.pl | 46 +++-
TAO/orbsvcs/tests/Notify/MC/test_monitor.cpp | 294 +++++++++++++++------
.../Notify_Structured_Push_Consumer.cpp | 14 +
.../Notify_Structured_Push_Consumer.h | 5 +
.../tests/unit/Notify/MC/Statistic/Statistic.cpp | 4 +-
TAO/tao/Monitor/Monitor_Types.pidl | 1 +
58 files changed, 1246 insertions(+), 182 deletions(-)
create mode 100644 TAO/MPC/config/notify_monitor_control.mpb
create mode 100644 TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorProxyPushSupplier.h
create mode 100644 TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorProxySupplier_T.cpp
create mode 100644 TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorProxySupplier_T.h
create mode 100644 TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSequenceProxyPushSupplier.h
create mode 100644 TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorStructuredProxyPushSupplier.h
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 232e5c9b75f..1d4f8069085 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,75 @@
+Wed Oct 28 23:27:02 UTC 2009 Yan Dai
+
+ * MPC/config/negotiate_codesets.mpb:
+ * MPC/config/notify_monitor_control.mpb:
+ * MPC/config/tao_notify_service.mpb:
+ * docs/notification/monitor.html:
+ * interop-tests/wchar/Client.java:
+ * interop-tests/wchar/interop_wchar.mpc:
+ * interop-tests/wchar/server.cpp:
+ * orbsvcs/Notify_Service/Notify_Service.cpp:
+ * orbsvcs/Notify_Service/Notify_Service.mpc:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.h:
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
+ * orbsvcs/orbsvcs/Notify/Builder.cpp:
+ * orbsvcs/orbsvcs/Notify/Consumer.h:
+ * orbsvcs/orbsvcs/Notify/Consumer.inl:
+ * orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControl/NotificationServiceMonitor_i.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Default_Factory.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Default_Factory.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannel.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorProxySupplier_T.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorProxySupplier_T.cpp:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSequenceProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorStructuredProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/MonitorControlExt/NotifyMonitoringExt.idl:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp:
+ * orbsvcs/tests/Notify/MC/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/MC/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/MC/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/MC/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/MC/notify.conf:
+ * orbsvcs/tests/Notify/MC/run_test.pl:
+ * orbsvcs/tests/Notify/MC/test_monitor.cpp:
+ * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/unit/Notify/MC/Statistic/Statistic.cpp:
+ * tao/Monitor/Monitor_Types.pidl:
+
+ Merged following changes from OCI made between 1.5a p15 and p16 releases.
+
+ - Added consumer-level queueing statistics to the Notification Service MC.
+ - Added queue-overflow statistics to the Notification Service MC.
+ - Modified Notification Service MC to work in static builds.
+ - Corrected an error that caused Notification Service MC statistics to fail
+ when -AllocateTaskPerProxy is used.
+ - QueueDepth have been changed to measure the number of entries rather than
+ attempting unsuccessfully to estimate the amount of memory used by the queue.
+ - Added TAO_EXPLICIT_NEGOTIATE_CODESETS macro to improve the ease of including
+ optional codeset support to Notify_Service in static builds.
+
Wed Oct 28 06:09:33 UTC 2009 Johnny Willemsen
* bin/tao_other_tests.lst:
diff --git a/TAO/MPC/config/negotiate_codesets.mpb b/TAO/MPC/config/negotiate_codesets.mpb
index 52e80a81b22..fedc567d674 100644
--- a/TAO/MPC/config/negotiate_codesets.mpb
+++ b/TAO/MPC/config/negotiate_codesets.mpb
@@ -4,4 +4,5 @@
feature(negotiate_codesets) {
after += Codeset
libs += TAO_Codeset
+ macros += TAO_EXPLICIT_NEGOTIATE_CODESETS
}
diff --git a/TAO/MPC/config/notify_monitor_control.mpb b/TAO/MPC/config/notify_monitor_control.mpb
new file mode 100644
index 00000000000..acb24642eff
--- /dev/null
+++ b/TAO/MPC/config/notify_monitor_control.mpb
@@ -0,0 +1,8 @@
+// -*- MPC -*-
+// $Id$
+
+feature(notify_monitor_control) {
+ after += TAO_Monitor CosNotification_MC CosNotification_MC_Ext
+ libs += TAO_CosNotification_MC_Ext TAO_CosNotification_MC TAO_Monitor
+ macros += TAO_HAS_NOTIFICATION_MONITOR_CONTROL
+}
diff --git a/TAO/MPC/config/tao_notify_service.mpb b/TAO/MPC/config/tao_notify_service.mpb
index 5c9809baa80..8facd4907bc 100644
--- a/TAO/MPC/config/tao_notify_service.mpb
+++ b/TAO/MPC/config/tao_notify_service.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib, notification_serv, notification_serv, naming, iortable, messaging_optional, valuetype, svc_utils {
+project : orbsvcslib, notification_serv, notification_serv, naming, iortable, messaging_optional, valuetype, svc_utils, notify_monitor_control{
after += TAO_Notify_Service
libs += TAO_Notify_Service
tagchecks += Notify
diff --git a/TAO/docs/notification/monitor.html b/TAO/docs/notification/monitor.html
index 7d47bc3ae94..9c302c23f26 100644
--- a/TAO/docs/notification/monitor.html
+++ b/TAO/docs/notification/monitor.html
@@ -19,7 +19,12 @@ and Control is configured.
Using the Notification Service Monitor
Configuration
-The monitor is enabled via the Service Configurator. The following
+The monitor is enabled via the Service Configurator. These instructions
+assume that ACE and TAO are built as dynamic libraries. If you are using
+static libraries, read these instructions first, then refer to the
+special procedures for static libraries section below.
+
+The following
Service Configurator commands will enable the monitor:
dynamic TAO_MonitorAndControl Service_Object * TAO_CosNotification_MC:_make_TAO_MonitorAndControl () ""
@@ -131,4 +136,46 @@ combination of get_statistics() and clear_statistics().
not correspond to an event channel, the InvalidName exception will be
thrown.
+
+
+If ACE and TAO are built as static libraries, follow the instructions above
+with these modifications:
+
+- On the mwc.pl command used to generate the build files, add the
+-features -features "notify_monitor_control=1" option. For example
+to build for VC9, the mwc commmand would look like:
+
+
+- Replace the "dynamic" service configuration commands with a "static"
+commands. Note that these commands have different syntaxes.
+
For example if
+the service configuration commands for a dynamic build are (Lines wrapped
+for illustrative purposes. In the service conf file the following should
+appear on two lines):
+ you should replace them with
+
+Please note that the parser for the static service configuration directives
+does not honor escaped quotes, so the -ORBArg option must appear separately for
+each argument to the Notification Service MC's ORB.
+
+