summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2011-04-07 11:36:07 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2011-04-07 11:36:07 +0000
commit57a3abab77bf7e53eb868b04cc3159a78357f86e (patch)
tree979d68941d45f2f4ed575c578520d65c041f3acb
parent3f0d75d92ae9b9dda55c4e508aea2b940ed1ec3f (diff)
downloadATCD-57a3abab77bf7e53eb868b04cc3159a78357f86e.tar.gz
Thu Apr 7 11:35:36 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>
* tests/DAnCE/Launch-Failures: * tests/DAnCE/Launch-Failures/Component: * tests/DAnCE/Launch-Failures/Component/Launch_Failure.idl: * tests/DAnCE/Launch-Failures/Component/Launch_Failure.mpc: * tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.h: * tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.cpp: * tests/DAnCE/Launch-Failures/descriptors: * tests/DAnCE/Launch-Failures/lib: * tests/DAnCE/Launch-Failures/lib_stub: Testing framework for launch failures.
-rw-r--r--CIAO/ChangeLog14
-rw-r--r--CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.idl38
-rw-r--r--CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.mpc138
-rw-r--r--CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.cpp269
-rw-r--r--CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.h205
5 files changed, 664 insertions, 0 deletions
diff --git a/CIAO/ChangeLog b/CIAO/ChangeLog
index a29873ec5b9..9bffad88b5a 100644
--- a/CIAO/ChangeLog
+++ b/CIAO/ChangeLog
@@ -1,3 +1,17 @@
+Thu Apr 7 11:35:36 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>
+
+ * tests/DAnCE/Launch-Failures:
+ * tests/DAnCE/Launch-Failures/Component:
+ * tests/DAnCE/Launch-Failures/Component/Launch_Failure.idl:
+ * tests/DAnCE/Launch-Failures/Component/Launch_Failure.mpc:
+ * tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.h:
+ * tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.cpp:
+ * tests/DAnCE/Launch-Failures/descriptors:
+ * tests/DAnCE/Launch-Failures/lib:
+ * tests/DAnCE/Launch-Failures/lib_stub:
+
+ Testing framework for launch failures.
+
Wed Apr 6 12:55:04 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>
* ciao/Deployment/Interceptors/Name_Utilities.cpp:
diff --git a/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.idl b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.idl
new file mode 100644
index 00000000000..41369f58289
--- /dev/null
+++ b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.idl
@@ -0,0 +1,38 @@
+// $Id$
+
+#include <Components.idl>
+
+interface Remote_Interface
+{
+};
+
+local interface Local_Interface
+{
+};
+
+enum Failure_Reason
+{
+ ATTRIBUTE_EXCEPTION,
+ NIL_FACET_REFERENCE
+};
+
+exception Custom_Exception
+{
+};
+
+component Launch_Failure
+{
+ provides Remote_Interface remote_out;
+ uses Remote_Interface remote_in;
+
+ provides Local_Interface local_out;
+ provides Local_Interface local_in;
+
+ attribute Failure_Reason failure_reason;
+
+
+};
+
+home Launch_Failure_Home manages Launch_Failure
+{
+};
diff --git a/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.mpc b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.mpc
new file mode 100644
index 00000000000..bf1b35171dd
--- /dev/null
+++ b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure.mpc
@@ -0,0 +1,138 @@
+// $Id$
+// This file is generated with "generate_component_mpc.pl Launch_Failure"
+
+project(Launch_Failure_idl_gen) : componentidldefaults {
+ custom_only = 1
+
+ idlflags += -Wb,stub_export_macro=LAUNCH_FAILURE_STUB_Export \
+ -Wb,stub_export_include=Launch_Failure_stub_export.h \
+ -Wb,skel_export_macro=LAUNCH_FAILURE_SVNT_Export \
+ -Wb,skel_export_include=Launch_Failure_svnt_export.h \
+ -Wb,exec_export_macro=LAUNCH_FAILURE_EXEC_Export \
+ -Wb,exec_export_include=Launch_Failure_exec_export.h \
+ -Gxhex -Gxhsk -Gxhst
+
+ IDL_Files {
+ Launch_Failure.idl
+ }
+}
+
+project(Launch_Failure_lem_gen) : ciaoidldefaults {
+ after += Launch_Failure_idl_gen
+ custom_only = 1
+ idlflags += -Wb,stub_export_macro=LAUNCH_FAILURE_LEM_STUB_Export \
+ -Wb,stub_export_include=Launch_Failure_lem_stub_export.h \
+ -SS -Gxhst
+
+ IDL_Files {
+ Launch_FailureE.idl
+ }
+}
+
+project(Launch_Failure_lem_stub) : ccm_svnt {
+ after += Launch_Failure_lem_gen Launch_Failure_stub
+ libs += Launch_Failure_stub
+
+ libout = ../lib
+
+ sharedname = Launch_Failure_lem_stub
+ dynamicflags += LAUNCH_FAILURE_LEM_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Launch_FailureEC.cpp
+ }
+
+ Header_Files {
+ Launch_FailureEC.h
+ Launch_Failure_lem_stub_export.h
+ }
+
+ Inline_Files {
+ Launch_FailureEC.inl
+ }
+}
+
+project(Launch_Failure_stub) : ccm_stub {
+ after += Launch_Failure_idl_gen
+ libs +=
+
+ libout = ../lib_stub
+
+ sharedname = Launch_Failure_stub
+ dynamicflags += LAUNCH_FAILURE_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Launch_FailureC.cpp
+ }
+
+ Header_Files {
+ Launch_FailureC.h
+ Launch_Failure_stub_export.h
+ }
+
+ Inline_Files {
+ Launch_FailureC.inl
+ }
+}
+
+project(Launch_Failure_exec) : ciao_executor {
+ after += Launch_Failure_lem_stub Launch_Failure_stub
+ sharedname = Launch_Failure_exec
+ libs += Launch_Failure_stub Launch_Failure_lem_stub
+
+ libout = ../lib
+
+ dynamicflags += LAUNCH_FAILURE_EXEC_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Launch_Failure_exec.cpp
+ }
+
+ Header_Files {
+ Launch_Failure_exec.h
+ Launch_Failure_exec_export.h
+ }
+
+ Inline_Files {
+ }
+}
+
+
+project(Launch_Failure_svnt) : ciao_servant {
+ after += Launch_Failure_lem_stub
+ sharedname = Launch_Failure_svnt
+ libs += Launch_Failure_stub Launch_Failure_lem_stub
+
+ libout = ../lib
+
+ dynamicflags += LAUNCH_FAILURE_SVNT_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Launch_FailureS.cpp
+ Launch_Failure_svnt.cpp
+ }
+
+ Header_Files {
+ Launch_FailureS.h
+ Launch_Failure_svnt.h
+ Launch_Failure_svnt_export.h
+ }
+
+ Inline_Files {
+ Launch_FailureS.inl
+ }
+}
+
+
diff --git a/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.cpp b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.cpp
new file mode 100644
index 00000000000..e4b6d75855c
--- /dev/null
+++ b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.cpp
@@ -0,0 +1,269 @@
+// -*- C++ -*-
+// $Id$
+
+/**
+ * Code generated by the The ACE ORB (TAO) IDL Compiler v2.0.1
+ * TAO and the TAO IDL Compiler have been developed by:
+ * Center for Distributed Object Computing
+ * Washington University
+ * St. Louis, MO
+ * USA
+ * http://www.cs.wustl.edu/~schmidt/doc-center.html
+ * and
+ * Distributed Object Computing Laboratory
+ * University of California at Irvine
+ * Irvine, CA
+ * USA
+ * and
+ * Institute for Software Integrated Systems
+ * Vanderbilt University
+ * Nashville, TN
+ * USA
+ * http://www.isis.vanderbilt.edu/
+ *
+ * Information about TAO is available at:
+ * http://www.cs.wustl.edu/~schmidt/TAO.html
+ **/
+
+#include "Launch_Failure_exec.h"
+
+namespace CIAO_Launch_Failure_Impl
+{
+
+ /**
+ * Facet Executor Implementation Class: remote_out_exec_i
+ */
+
+ remote_out_exec_i::remote_out_exec_i (
+ ::CCM_Launch_Failure_Context_ptr ctx)
+ : ciao_context_ (
+ ::CCM_Launch_Failure_Context::_duplicate (ctx))
+ {
+ }
+
+ remote_out_exec_i::~remote_out_exec_i (void)
+ {
+ }
+
+ // Operations from ::Remote_Interface
+
+ /**
+ * Facet Executor Implementation Class: local_out_exec_i
+ */
+
+ local_out_exec_i::local_out_exec_i (
+ ::CCM_Launch_Failure_Context_ptr ctx)
+ : ciao_context_ (
+ ::CCM_Launch_Failure_Context::_duplicate (ctx))
+ {
+ }
+
+ local_out_exec_i::~local_out_exec_i (void)
+ {
+ }
+
+ // Operations from ::Local_Interface
+
+ /**
+ * Facet Executor Implementation Class: local_in_exec_i
+ */
+
+ local_in_exec_i::local_in_exec_i (
+ ::CCM_Launch_Failure_Context_ptr ctx)
+ : ciao_context_ (
+ ::CCM_Launch_Failure_Context::_duplicate (ctx))
+ {
+ }
+
+ local_in_exec_i::~local_in_exec_i (void)
+ {
+ }
+
+ // Operations from ::Local_Interface
+
+ /**
+ * Component Executor Implementation Class: Launch_Failure_exec_i
+ */
+
+ Launch_Failure_exec_i::Launch_Failure_exec_i (void)
+ : failure_reason_ (static_cast< ::Failure_Reason> (0UL))
+ {
+ }
+
+ Launch_Failure_exec_i::~Launch_Failure_exec_i (void)
+ {
+ }
+
+ // Supported operations and attributes.
+
+ // Component attributes and port operations.
+
+ ::CCM_Remote_Interface_ptr
+ Launch_Failure_exec_i::get_remote_out (void)
+ {
+ if ( ::CORBA::is_nil (this->ciao_remote_out_.in ()))
+ {
+ remote_out_exec_i *tmp = 0;
+ ACE_NEW_RETURN (
+ tmp,
+ remote_out_exec_i (
+ this->ciao_context_.in ()),
+ ::CCM_Remote_Interface::_nil ());
+
+ this->ciao_remote_out_ = tmp;
+ }
+
+ return
+ ::CCM_Remote_Interface::_duplicate (
+ this->ciao_remote_out_.in ());
+ }
+
+ ::CCM_Local_Interface_ptr
+ Launch_Failure_exec_i::get_local_out (void)
+ {
+ if ( ::CORBA::is_nil (this->ciao_local_out_.in ()))
+ {
+ local_out_exec_i *tmp = 0;
+ ACE_NEW_RETURN (
+ tmp,
+ local_out_exec_i (
+ this->ciao_context_.in ()),
+ ::CCM_Local_Interface::_nil ());
+
+ this->ciao_local_out_ = tmp;
+ }
+
+ return
+ ::CCM_Local_Interface::_duplicate (
+ this->ciao_local_out_.in ());
+ }
+
+ ::CCM_Local_Interface_ptr
+ Launch_Failure_exec_i::get_local_in (void)
+ {
+ if ( ::CORBA::is_nil (this->ciao_local_in_.in ()))
+ {
+ local_in_exec_i *tmp = 0;
+ ACE_NEW_RETURN (
+ tmp,
+ local_in_exec_i (
+ this->ciao_context_.in ()),
+ ::CCM_Local_Interface::_nil ());
+
+ this->ciao_local_in_ = tmp;
+ }
+
+ return
+ ::CCM_Local_Interface::_duplicate (
+ this->ciao_local_in_.in ());
+ }
+
+ ::Failure_Reason
+ Launch_Failure_exec_i::failure_reason (void)
+ {
+ return this->failure_reason_;
+ }
+
+ void
+ Launch_Failure_exec_i::failure_reason (
+ const ::Failure_Reason failure_reason)
+ {
+ this->failure_reason_ = failure_reason;
+ }
+
+ // Operations from Components::SessionComponent.
+
+ void
+ Launch_Failure_exec_i::set_session_context (
+ ::Components::SessionContext_ptr ctx)
+ {
+ this->ciao_context_ =
+ ::CCM_Launch_Failure_Context::_narrow (ctx);
+
+ if ( ::CORBA::is_nil (this->ciao_context_.in ()))
+ {
+ throw ::CORBA::INTERNAL ();
+ }
+ }
+
+ void
+ Launch_Failure_exec_i::configuration_complete (void)
+ {
+ /* Your code here. */
+ }
+
+ void
+ Launch_Failure_exec_i::ccm_activate (void)
+ {
+ /* Your code here. */
+ }
+
+ void
+ Launch_Failure_exec_i::ccm_passivate (void)
+ {
+ /* Your code here. */
+ }
+
+ void
+ Launch_Failure_exec_i::ccm_remove (void)
+ {
+ /* Your code here. */
+ }
+
+ extern "C" LAUNCH_FAILURE_EXEC_Export ::Components::EnterpriseComponent_ptr
+ create_Launch_Failure_Impl (void)
+ {
+ ::Components::EnterpriseComponent_ptr retval =
+ ::Components::EnterpriseComponent::_nil ();
+
+ ACE_NEW_NORETURN (
+ retval,
+ Launch_Failure_exec_i);
+
+ return retval;
+ }
+}
+
+namespace CIAO_Launch_Failure_Impl
+{
+ /**
+ * Home Executor Implementation Class: Launch_Failure_Home_exec_i
+ */
+
+ Launch_Failure_Home_exec_i::Launch_Failure_Home_exec_i (void)
+ {
+ }
+
+ Launch_Failure_Home_exec_i::~Launch_Failure_Home_exec_i (void)
+ {
+ }
+
+ // Implicit operations.
+
+ ::Components::EnterpriseComponent_ptr
+ Launch_Failure_Home_exec_i::create (void)
+ {
+ ::Components::EnterpriseComponent_ptr retval =
+ ::Components::EnterpriseComponent::_nil ();
+
+ ACE_NEW_THROW_EX (
+ retval,
+ Launch_Failure_exec_i,
+ ::CORBA::NO_MEMORY ());
+
+ return retval;
+ }
+
+ extern "C" LAUNCH_FAILURE_EXEC_Export ::Components::HomeExecutorBase_ptr
+ create_Launch_Failure_Home_Impl (void)
+ {
+ ::Components::HomeExecutorBase_ptr retval =
+ ::Components::HomeExecutorBase::_nil ();
+
+ ACE_NEW_NORETURN (
+ retval,
+ Launch_Failure_Home_exec_i);
+
+ return retval;
+ }
+}
diff --git a/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.h b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.h
new file mode 100644
index 00000000000..3a111ef73b5
--- /dev/null
+++ b/CIAO/tests/DAnCE/Launch-Failures/Component/Launch_Failure_exec.h
@@ -0,0 +1,205 @@
+// -*- C++ -*-
+// $Id$
+
+/**
+ * Code generated by the The ACE ORB (TAO) IDL Compiler v2.0.1
+ * TAO and the TAO IDL Compiler have been developed by:
+ * Center for Distributed Object Computing
+ * Washington University
+ * St. Louis, MO
+ * USA
+ * http://www.cs.wustl.edu/~schmidt/doc-center.html
+ * and
+ * Distributed Object Computing Laboratory
+ * University of California at Irvine
+ * Irvine, CA
+ * USA
+ * and
+ * Institute for Software Integrated Systems
+ * Vanderbilt University
+ * Nashville, TN
+ * USA
+ * http://www.isis.vanderbilt.edu/
+ *
+ * Information about TAO is available at:
+ * http://www.cs.wustl.edu/~schmidt/TAO.html
+ **/
+#ifndef CIAO_LAUNCH_FAILURE_EXEC_SOQV6E_H_
+#define CIAO_LAUNCH_FAILURE_EXEC_SOQV6E_H_
+
+#include /**/ "ace/pre.h"
+
+#include "Launch_FailureEC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include /**/ "Launch_Failure_exec_export.h"
+#include "tao/LocalObject.h"
+
+namespace CIAO_Launch_Failure_Impl
+{
+
+ /**
+ * Provider Executor Implementation Class: remote_out_exec_i
+ */
+
+ class remote_out_exec_i
+ : public virtual ::CCM_Remote_Interface,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ remote_out_exec_i (
+ ::CCM_Launch_Failure_Context_ptr ctx);
+ virtual ~remote_out_exec_i (void);
+
+ /** @name Operations and attributes from Remote_Interface */
+ //@{
+ //@}
+
+ private:
+ ::CCM_Launch_Failure_Context_var ciao_context_;
+ };
+
+ /**
+ * Provider Executor Implementation Class: local_out_exec_i
+ */
+
+ class local_out_exec_i
+ : public virtual ::CCM_Local_Interface,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ local_out_exec_i (
+ ::CCM_Launch_Failure_Context_ptr ctx);
+ virtual ~local_out_exec_i (void);
+
+ /** @name Operations and attributes from Local_Interface */
+ //@{
+ //@}
+
+ private:
+ ::CCM_Launch_Failure_Context_var ciao_context_;
+ };
+
+ /**
+ * Provider Executor Implementation Class: local_in_exec_i
+ */
+
+ class local_in_exec_i
+ : public virtual ::CCM_Local_Interface,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ local_in_exec_i (
+ ::CCM_Launch_Failure_Context_ptr ctx);
+ virtual ~local_in_exec_i (void);
+
+ /** @name Operations and attributes from Local_Interface */
+ //@{
+ //@}
+
+ private:
+ ::CCM_Launch_Failure_Context_var ciao_context_;
+ };
+
+ /**
+ * Component Executor Implementation Class: Launch_Failure_exec_i
+ */
+
+ class Launch_Failure_exec_i
+ : public virtual Launch_Failure_Exec,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ Launch_Failure_exec_i (void);
+ virtual ~Launch_Failure_exec_i (void);
+
+ /** @name Supported operations and attributes. */
+ //@{
+
+ //@}
+
+ /** @name Component attributes and port operations. */
+ //@{
+
+ virtual ::CCM_Remote_Interface_ptr
+ get_remote_out (void);
+
+ virtual ::CCM_Local_Interface_ptr
+ get_local_out (void);
+
+ virtual ::CCM_Local_Interface_ptr
+ get_local_in (void);
+
+ virtual ::Failure_Reason failure_reason (void);
+
+ virtual void failure_reason (::Failure_Reason failure_reason);
+ //@}
+
+ /** @name Operations from Components::SessionComponent. */
+ //@{
+ virtual void set_session_context (::Components::SessionContext_ptr ctx);
+ virtual void configuration_complete (void);
+ virtual void ccm_activate (void);
+ virtual void ccm_passivate (void);
+ virtual void ccm_remove (void);
+ //@}
+
+ /** @name User defined public operations. */
+ //@{
+
+ //@}
+
+ private:
+ ::CCM_Launch_Failure_Context_var ciao_context_;
+
+ /** @name Component attributes. */
+ //@{
+ ::CCM_Remote_Interface_var ciao_remote_out_;
+ ::CCM_Local_Interface_var ciao_local_out_;
+ ::CCM_Local_Interface_var ciao_local_in_;
+
+ ::Failure_Reason failure_reason_;
+ //@}
+
+ /** @name User defined members. */
+ //@{
+
+ //@}
+
+ /** @name User defined private operations. */
+ //@{
+
+ //@}
+ };
+
+ extern "C" LAUNCH_FAILURE_EXEC_Export ::Components::EnterpriseComponent_ptr
+ create_Launch_Failure_Impl (void);
+}
+
+namespace CIAO_Launch_Failure_Impl
+{
+ class LAUNCH_FAILURE_EXEC_Export Launch_Failure_Home_exec_i
+ : public virtual Launch_Failure_Home_Exec,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ Launch_Failure_Home_exec_i (void);
+
+ virtual ~Launch_Failure_Home_exec_i (void);
+
+ // Implicit operations.
+
+ virtual ::Components::EnterpriseComponent_ptr
+ create (void);
+ };
+
+ extern "C" LAUNCH_FAILURE_EXEC_Export ::Components::HomeExecutorBase_ptr
+ create_Launch_Failure_Home_Impl (void);
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* ifndef */