summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h')
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h123
1 files changed, 0 insertions, 123 deletions
diff --git a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h
deleted file mode 100644
index dde7b393023..00000000000
--- a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h
+++ /dev/null
@@ -1,123 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-// ==========================================================================
-//
-// = FILENAME
-// ConnectDisconnect.h
-//
-// = DESCRIPTION
-// Test connect-disconnect methods of Notify.
-//
-// = AUTHOR
-// Pradeep Gore <pradeep@cs.wustl.edu>
-//
-// ==========================================================================
-
-#ifndef NOTIFY_CONNECT_DISCONNECT_H
-#define NOTIFY_CONNECT_DISCONNECT_H
-
-#include "Notify_Test_Client.h"
-#include "Notify_StructuredPushConsumer.h"
-#include "Notify_StructuredPushSupplier.h"
-#include "Notify_PushConsumer.h"
-#include "Notify_PushSupplier.h"
-#include "Notify_SequencePushConsumer.h"
-#include "Notify_SequencePushSupplier.h"
-
-class ConnectDisconnect;
-
-class CD_Entity
-{
- // The entity that connects/disconnects
-public:
- CD_Entity (ConnectDisconnect* cd, int id);
- ~CD_Entity ();
-private:
- int id_;
- ConnectDisconnect* cd_;
-};
-
-#define CD_DECLARE_ENTITY(X) \
-class CD_##X : public TAO_Notify_##X, public CD_Entity \
-{ \
-public: \
- CD_##X (ConnectDisconnect* cd, int id); \
-};
-
-CD_DECLARE_ENTITY(PushConsumer)
-CD_DECLARE_ENTITY(StructuredPushConsumer)
-CD_DECLARE_ENTITY(SequencePushConsumer)
-
-CD_DECLARE_ENTITY(PushSupplier)
-CD_DECLARE_ENTITY(StructuredPushSupplier)
-CD_DECLARE_ENTITY(SequencePushSupplier)
-
-/***************************************************************************/
-
-class ConnectDisconnect : public Notify_Test_Client
-{
-public:
- // Initialization and termination code
- ConnectDisconnect (void);
- virtual ~ConnectDisconnect ();
-
- void on_entity_destroyed (void);
- // keeps track of how many objects were destroyed.
-
- int parse_args(int argc, char *argv[]) ;
-
- void init (int argc, char *argv [], CORBA::Environment &ACE_TRY_ENV);
- // initialization.
-
- void run_test (CORBA::Environment &ACE_TRY_ENV);
- // Run the test.
-
- void end_test (CORBA::Environment &ACE_TRY_ENV);
- // End the test.
-
- int check_results (void);
- // check if we got the expected results.
-
-protected:
- void create_EC (CORBA::Environment &ACE_TRY_ENV);
- // Create EC
-
- CosNotifyChannelAdmin::EventChannel_var ec_;
- // The one channel that we create using the factory.
-
- CosNotifyChannelAdmin::ConsumerAdmin_var consumer_admin_;
- // The consumer admin used by consumers.
-
- CosNotifyChannelAdmin::SupplierAdmin_var supplier_admin_;
- // The supplier admin used by suppliers.
-
- TAO_Notify_PushConsumer** any_consumer_;
- TAO_Notify_StructuredPushConsumer** structured_consumer_;
- TAO_Notify_SequencePushConsumer** sequence_consumer_;
- // arrays of Consumers
-
- TAO_Notify_PushSupplier** any_supplier_;
- TAO_Notify_StructuredPushSupplier** structured_supplier_;
- TAO_Notify_SequencePushSupplier** sequence_supplier_;
- // arrays of Suppliers
-
- ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> result_count_;
- // count of clients destroyed. for c consumers, s suppliers and for t times.
- // this should be (s+c)*t
-
- int expected_count_; // (s+c)*t
-
- // = command line params
-
- int count_;
- // The number of iterations to connect disconnect.
-
- int consumers_;
- // The number of counsumers to create.
-
- int suppliers_;
- // The number of suppliers to create.
-};
-
-/***************************************************************************/
-#endif /* NOTIFY_TESTS_UPDATES_H */