summaryrefslogtreecommitdiff
path: root/CIAO/ciao/Containers/Generic/Generic_Container.idl
blob: 07ff8c5c14699b9e813079729277a6b76bb1d629 (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
/**
 * @file Generic_Container.idl
 * @author Johnny Willemsen
 * $Id$
 * Extends the basic container interface for extension capabilities.
 */

#include "ciao/Containers/Container_Base.idl"
#include "ccm/Extension/CCM_ClientContainerInterceptorRegistration.idl"
#include "ccm/Extension/CCM_ServantContainerInterceptorRegistration.idl"
#include "ccm/Extension/CCM_ServerContainerInterceptorRegistration.idl"
#include "ccm/Extension/CCM_StubContainerInterceptorRegistration.idl"

module CIAO
{
  local interface Generic_Container : Container
  {
    Components::Cookie install_service_reference(in string service_id, in Object objref)
      raises (Components::CCMException);
    Object uninstall_service_reference(in Components::Cookie ck)
      raises (Components::CCMException);

    Components::ContainerPortableInterceptor::ClientContainerInterceptorRegistration
      get_client_interceptor_registration ()
        raises (Components::CCMException);
    Components::ContainerPortableInterceptor::ServerContainerInterceptorRegistration
      get_server_interceptor_registration ()
        raises (Components::CCMException);
    Components::ContainerPortableInterceptor::StubContainerInterceptorRegistration
      get_stub_interceptor_registration()
        raises (Components::CCMException);
    Components::ContainerPortableInterceptor::ServantContainerInterceptorRegistration
      get_servant_interceptor_registration()
        raises (Components::CCMException);
  };

  local interface InstanceManager
  {
    readonly attribute string instance_type;

    readonly attribute ::CORBA::StringSeq dependencies;

    void configure (/*in ::Deployment::Properties config*/);

    void install_instance (/*in ::Deployment::DeploymentPlan plan,*/
                           in unsigned long instanceRef,
                           out any instance_reference);
      /*raises (Deployment::StartError,
              Deployment::InvalidProperty,
              Deployment::InvalidNodeExecParameter,
              Deployment::InvalidComponentExecParameter);*/


    void connect_instance (/*in ::Deployment::DeploymentPlan plan,*/
                           in unsigned long connectionRef,
                           in any provided_reference);
      //raises (Deployment::StartError,
      //        Deployment::InvalidConnection);

    void disconnect_instance (/*in ::Deployment::DeploymentPlan plan,*/
                              in unsigned long connectionRef);
      //raises (::Deployment::StopError);

    void instance_configured (/*in ::Deployment::DeploymentPlan plan,*/
                              in unsigned long instanceRef);
      //raises (Deployment::StartError);

    void activate_instance (/*in ::Deployment::DeploymentPlan plan,*/
                            in unsigned long instanceRef,
                            in any instance_re:Dference);
      //raises (Deployment::StartError);

    void passivate_instance (/*in ::Deployment::DeploymentPlan plan,*/
                             in unsigned long instanceRef,
                             in any instance_reference);
      //raises (Deployment::StopError);

    void remove_instance (/*in ::Deployment::DeploymentPlan plan,*/
                          in unsigned long instanceRef,
                          in any instance_reference);
      //raises (::Deployment::StopError);

    /// Instruct the handler to release any resources prior to deallocation.
    void close ();
  };

};