summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/DAnCE/DAnCE_DeploymentInterceptors.idl
blob: 87401156e033566dbd1b01bfef834dacf13137f5 (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
// $Id$

#ifndef DANCE_DEPLOYMENTINTERCEPTOR_IDL
#define DANCE_DEPLOYMENTINTERCEPTOR_IDL

#include "Deployment/Deployment_DeploymentPlan.idl"
#include "Deployment/Deployment_PlanError.idl"
#include "Deployment/Deployment_InvalidProperty.idl"
#include "Deployment/Deployment_InvalidNodeExecParameter.idl"
#include "Deployment/Deployment_InvalidComponentExecParameter.idl"
#include "Deployment/Deployment_InvalidConnection.idl"
#include "Deployment/Deployment_StartError.idl"
#include "Deployment/Deployment_StopError.idl"

module DAnCE
{
  local interface DeploymentInterceptor
  {
    void configure (in ::Deployment::Properties config);

    void preprocess_plan (inout ::Deployment::DeploymentPlan plan)
      raises (::Deployment::PlanError);

    void pre_install (inout ::Deployment::DeploymentPlan plan,
                               in unsigned long instanceRef)
      raises (::Deployment::PlanError,
              ::Deployment::InvalidProperty,
              ::Deployment::InvalidNodeExecParameter,
              ::Deployment::InvalidComponentExecParameter);

    void post_install (in ::Deployment::DeploymentPlan plan,
                                in unsigned long instance_index,
                                in any instance_reference,
                                in any exception_thrown)
      raises (::Deployment::PlanError,
              ::Deployment::InvalidProperty,
              ::Deployment::InvalidNodeExecParameter,
              ::Deployment::InvalidComponentExecParameter);
    
    void post_endpoint_reference (in ::Deployment::DeploymentPlan plan,
                                  in unsigned long connectionRef,
                                  in any endpoint_reference,
                                  in any exception_thrown)
      raises (::Deployment::InvalidConnection);
    
    void pre_connect (inout ::Deployment::DeploymentPlan plan,
                               in unsigned long connection_index,
                               inout any provided_reference)
      raises (::Deployment::InvalidConnection);

    void post_connect (in Deployment::DeploymentPlan plan,
                                in unsigned long connectionRef,
                                in any exceptionThrown)
      raises (::Deployment::InvalidConnection);
    
    void post_configured (in ::Deployment::DeploymentPlan plan,
                                   in unsigned long instanceRef,
                                   in any exception_thrown)
      raises (::Deployment::StartError);

    void post_activate (in ::Deployment::DeploymentPlan plan,
                                 in unsigned long instanceRef,
                                 in any exception_thrown)
      raises (::Deployment::StartError);

    void post_passivate (in ::Deployment::DeploymentPlan plan,
                                  in unsigned long instanceRef,
                                  in any exception_thrown)
      raises (::Deployment::StopError);
    void post_remove (in ::Deployment::DeploymentPlan plan,
                               in unsigned long instanceRef,
                               in any exception_thrown)
      raises (::Deployment::StopError);
  };
};

#endif