summaryrefslogtreecommitdiff
path: root/CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.cpp')
-rw-r--r--CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.cpp106
1 files changed, 0 insertions, 106 deletions
diff --git a/CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.cpp b/CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.cpp
deleted file mode 100644
index 32f09b40a17..00000000000
--- a/CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-// -*- C++ -*-
-#include "Executor_Destructor_Interceptor.h"
-#include "Exec_Dest_Status.h"
-
-#include "dance/DAnCE_PropertiesC.h"
-#include "dance/DAnCE_Utility.h"
-
-namespace DAnCE
-{
- // Implementation skeleton constructor
- Executor_Destructor::Executor_Destructor (void)
- {
- dance_test::Exec_Dest_Status * tmp =
- dance_test::EXEC_DEST_STATUS::instance ();
- ACE_UNUSED_ARG (tmp);
- }
-
- // Implementation skeleton destructor
- Executor_Destructor::~Executor_Destructor (void)
- {
- for (std::set < std::string >::iterator i = instance_ids_.begin ();
- i != instance_ids_.end ();
- ++i)
- {
- if (!dance_test::EXEC_DEST_STATUS::instance ()->check_destructor (*i))
- {
- ACE_ERROR ((LM_EMERGENCY,
- ACE_TEXT ("Error: Destructor for instance <%C> not invoked\n"),
- i->c_str ()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Success! Destructor for instance <%C> was invoked!\n"),
- i->c_str ()));
- }
- }
-
- this->instance_ids_.clear ();
- dance_test::EXEC_DEST_STATUS::close ();
- }
-
- void
- Executor_Destructor::configure (const ::Deployment::Properties &)
- {
- // Add your implementation here
- }
-
- void
- Executor_Destructor::preprocess_plan (::Deployment::DeploymentPlan &plan)
- {
- for (CORBA::ULong i = 0; i < plan.instance.length (); ++i)
- {
- ::Deployment::MonolithicDeploymentDescription &mdd =
- plan.implementation[plan.instance[i].implementationRef];
-
- if (ACE_OS::strcmp (DAnCE::Utility::get_instance_type (mdd.execParameter),
- ::DAnCE::DANCE_LOCALITYMANAGER) != 0)
- this->instance_ids_.insert (plan.instance[i].name.in ());
- }
- }
-
- void
- Executor_Destructor::pre_install (::Deployment::DeploymentPlan &,
- ::CORBA::ULong)
- {
- // Add your implementation here
- }
-
- void Executor_Destructor::post_configured (const ::Deployment::DeploymentPlan & ,
- ::CORBA::ULong ,
- const ::CORBA::Any &)
- {
- // Add your implementation here
- }
-
- void Executor_Destructor::post_activate (const ::Deployment::DeploymentPlan & ,
- ::CORBA::ULong ,
- const ::CORBA::Any & )
- {
- // Add your implementation here
- }
-
- void Executor_Destructor::post_passivate (const ::Deployment::DeploymentPlan & ,
- ::CORBA::ULong ,
- const ::CORBA::Any &)
- {
- // Add your implementation here
- }
-
- void Executor_Destructor::post_remove (const ::Deployment::DeploymentPlan &,
- ::CORBA::ULong ,
- const ::CORBA::Any & )
- {
- }
-}
-
-
-extern "C"
-{
- ::DAnCE::DeploymentInterceptor_ptr
- create_Executor_Destructor (void)
- {
- return new DAnCE::Executor_Destructor ();
- }
-}