summaryrefslogtreecommitdiff
path: root/CIAO/ciao/FTComponentServer/CIAO_FTComponentServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/ciao/FTComponentServer/CIAO_FTComponentServer.h')
-rw-r--r--CIAO/ciao/FTComponentServer/CIAO_FTComponentServer.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/CIAO/ciao/FTComponentServer/CIAO_FTComponentServer.h b/CIAO/ciao/FTComponentServer/CIAO_FTComponentServer.h
new file mode 100644
index 00000000000..24a8ca4f484
--- /dev/null
+++ b/CIAO/ciao/FTComponentServer/CIAO_FTComponentServer.h
@@ -0,0 +1,78 @@
+/**
+ * @file CIAO_ComponentServer.h
+ * @author William R. Otte
+ *
+ * Defines interface for the bootstrap element of the CIAO Component
+ * Server.
+ */
+
+#ifndef CIAO_COMPONENTSERVER_H_
+#define CIAO_COMPONENTSERVER_H_
+
+#include "ace/String_Base.h"
+#include "ace/Task.h"
+#include "tao/ORB.h"
+#include "ciao/Logger/Logger_Service.h"
+#include "orbsvcs/CosNamingC.h"
+
+class StateSynchronizationAgent;
+
+namespace CIAO
+{
+ namespace Deployment
+ {
+ class ComponentServer_Configurator;
+
+
+ class ComponentServer_Task : ACE_Task_Base
+ {
+ public:
+ ComponentServer_Task (int argc, ACE_TCHAR **argv);
+
+ int svc (void);
+
+ struct Error
+ {
+ Error (const ACE_CString &err) : err_(err) {}
+
+ ACE_CString err_;
+ };
+
+ void run (void);
+
+ private:
+ void parse_args (int argc, ACE_TCHAR **argv);
+
+ void get_log_level (int argc, ACE_TCHAR **argv);
+
+ void set_log_level (void);
+
+ void configure_logging_backend (void);
+
+ void usage (void);
+
+ const char * sched_policy_name (int sched_policy);
+
+ void check_supported_priorities (void);
+
+ /// helper functions for naming service operations
+ std::string get_hostname ();
+
+ std::string get_process_id ();
+
+ std::string get_obj_path ();
+
+ CORBA::ORB_var orb_;
+
+ auto_ptr<CIAO::Logger_Service> logger_;
+
+ ACE_CString uuid_;
+ ACE_CString callback_ior_str_;
+ ACE_CString output_file_;
+ auto_ptr<ComponentServer_Configurator> configurator_;
+
+ };
+ }
+}
+
+#endif