summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthrall <thrall@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-05-28 20:09:14 +0000
committerthrall <thrall@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-05-28 20:09:14 +0000
commit6f530220a4fa3ecbdb4f4fe07c044d5461b8b7c8 (patch)
tree0cc87b86089c25cd2700e89da9e597b96d525783
parent35ce532920ea2d9a0e5b644b2c8507a79b064084 (diff)
downloadATCD-6f530220a4fa3ecbdb4f4fe07c044d5461b8b7c8.tar.gz
Now defaults to random mode switching
-rw-r--r--TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Dynamic_Supplier.cpp4
-rw-r--r--TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Supplier_EC.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Dynamic_Supplier.cpp b/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Dynamic_Supplier.cpp
index 2bb5001ba34..ce5f9a9dfd5 100644
--- a/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Dynamic_Supplier.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Dynamic_Supplier.cpp
@@ -52,7 +52,7 @@ Dynamic_Supplier::timeout_occured (ACE_ENV_SINGLE_ARG_DECL)
switch (this->mode_) {
case FAULT_TOLERANT:
{
- ACE_DEBUG((LM_DEBUG,"Dynamic_Supplier (%P|%t) mode: FAULT_TOLERANT\n"));
+ ACE_DEBUG((LM_DEBUG,"Fault Tolerant Mode\n"));
eventA[0].header.type = this->ft_type_;
eventB[0].header.type = this->ft_type2_;
//ACE_DEBUG((LM_DEBUG,"Dynamic_Supplier (%P|%t) setting header FT types: A = %d, B = %d\n",eventA[0].header.type,eventB[0].header.type));
@@ -61,7 +61,7 @@ Dynamic_Supplier::timeout_occured (ACE_ENV_SINGLE_ARG_DECL)
}
default: //NORMAL
{
- ACE_DEBUG((LM_DEBUG,"Dynamic_Supplier (%P|%t) mode: NORMAL\n"));
+ ACE_DEBUG((LM_DEBUG,"Normal Mode\n"));
eventA[0].header.type = this->norm_type_;
eventB[0].header.type = this->norm_type2_;
//ACE_DEBUG((LM_DEBUG,"Dynamic_Supplier (%P|%t) setting header types: A = %d, B = %d\n",eventA[0].header.type,eventB[0].header.type));
diff --git a/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Supplier_EC.cpp b/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Supplier_EC.cpp
index 7bdef675b58..b39bd782a22 100644
--- a/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Supplier_EC.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Federated_Kokyu/dynamic_topology_test/Supplier_EC.cpp
@@ -243,7 +243,7 @@ public:
Mode_Handler *mode_handler;
ACE_NEW(mode_handler,
- Mode_Handler(0)); //mode switch immediately
+ Mode_Handler(-1)); //mode switch immediately
Supplier *supplier_impl1_1;
Timeout_Consumer *timeout_consumer_impl1_1;
ACE_NEW(supplier_impl1_1,
@@ -365,6 +365,8 @@ int parse_args (int argc, char *argv[]);
int
main (int argc, char* argv[])
{
+ srand(42);
+
//TAO_EC_Default_Factory::init_svcs ();
TAO_EC_Kokyu_Factory::init_svcs ();
TAO_EC_Gateway_IIOP_Factory::init_svcs ();