summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/LongUpcalls/Manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/LongUpcalls/Manager.h')
-rw-r--r--trunk/TAO/tests/LongUpcalls/Manager.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/trunk/TAO/tests/LongUpcalls/Manager.h b/trunk/TAO/tests/LongUpcalls/Manager.h
new file mode 100644
index 00000000000..65e7934f00c
--- /dev/null
+++ b/trunk/TAO/tests/LongUpcalls/Manager.h
@@ -0,0 +1,52 @@
+//
+// $Id$
+//
+
+#ifndef LONGUPCALLS_MANAGER_H
+#define LONGUPCALLS_MANAGER_H
+
+#include "TestS.h"
+#include "ace/Task.h"
+
+class Manager
+ : public virtual POA_Test::Manager
+{
+public:
+ Manager (CORBA::ORB_ptr orb);
+ // Constructor
+
+ // = The skeleton methods
+ virtual void start_workers (CORBA::Short worker_count,
+ CORBA::Long milliseconds,
+ Test::Controller_ptr controller
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+private:
+ CORBA::ORB_var orb_;
+ // The ORB, to shutdown
+};
+
+// ****************************************************************
+
+class Worker : public ACE_Task_Base
+{
+public:
+ Worker (ACE_Thread_Manager *thr_mgr,
+ Test::Controller_ptr controller,
+ CORBA::Long milliseconds);
+
+ virtual int svc (void);
+ // The service method
+
+private:
+ Test::Controller_var controller_;
+ // The controller pointer
+
+ CORBA::Long milliseconds_;
+ // The number of milliseconds.
+};
+
+#endif /* LONGUPCALLS_MANAGER_H */