summaryrefslogtreecommitdiff
path: root/CIAO/tests/DAnCE/Executor-Destructor/Executor_Destructor_Interceptor.h
blob: b3cf24724e1c08530f7d35558e80380bb9416348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// -*- C++ -*-
// $Id$

/**
 * @file Executor_Destructor_Interceptor.h
 *
 * Base, no-op interceptor.
 **/

// TAO_IDL - Generated from
// be/be_codegen.cpp:1571

#ifndef EXEC_DEST_INT
#define EXEC_DEST_INT

#include "Exec_Dest_export.h"

#include "dance/DAnCE_DeploymentInterceptorsC.h"
#include "dance/DAnCE_DeploymentInterceptors_Base_Impl.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/LocalObject.h"

#include <set>
#include <string>

namespace DAnCE
{
  /**
   * @class DAnCE_Executor_Destructor
   * @brief Base, no-op interceptor implementation.
   */
  class Executor_Destructor_Interceptor_Export Executor_Destructor
    : public virtual ::DAnCE::DeploymentInterceptor_Base
  {
  public:
    // Constructor
    Executor_Destructor (void);

    // Destructor
    virtual ~Executor_Destructor (void);

    virtual
      void configure (const ::Deployment::Properties & config);

    virtual
      void preprocess_plan (::Deployment::DeploymentPlan & plan);

    virtual
      void pre_install (::Deployment::DeploymentPlan & plan,
                        ::CORBA::ULong instanceRef);

    virtual
      void post_configured (const ::Deployment::DeploymentPlan & plan,
                            ::CORBA::ULong instanceRef,
                            const ::CORBA::Any & exception_thrown);

    virtual
      void post_activate (const ::Deployment::DeploymentPlan & plan,
                          ::CORBA::ULong instanceRef,
                          const ::CORBA::Any & exception_thrown);

    virtual
      void post_passivate (const ::Deployment::DeploymentPlan & plan,
                           ::CORBA::ULong instanceRef,
                           const ::CORBA::Any & exception_thrown);

    virtual
      void post_remove (const ::Deployment::DeploymentPlan & plan,
                        ::CORBA::ULong instanceRef,
                        const ::CORBA::Any & exception_thrown);

  private:
    std::set < std::string > instance_ids_;
  };
}

extern "C"
{
  ::DAnCE::DeploymentInterceptor_ptr
  Executor_Destructor_Interceptor_Export create_Executor_Destructor (void);
}


#endif /* DANCE_DEPLOYMENTINTERCEPTORSI_H_  */