summaryrefslogtreecommitdiff
path: root/trunk/CIAO/DAnCE/Deployment/Deployment_NodeManager.idl
blob: 7c15dff059820a1602ec191addea76fa9dd7fab3 (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
// $Id$
#ifndef NODEMANAGER_IDL
#define NODEMANAGER_IDL

#include "DAnCE/Deployment/Deployment.idl"
#include "DAnCE/Deployment/Deployment_Core.idl"
#include "DAnCE/Deployment/Deployment_TargetManager.idl"

module Deployment {

  interface Logger {
  };

  interface NodeApplicationManager;
  
  //@@changed
//   interface NodeManager {
//     void joinDomain (in Domain theDomain, in TargetManager manager, in
//                      Logger log, in long updateInterval);
//     void leaveDomain ();
//     NodeApplicationManager preparePlan (in DeploymentPlan plan, in
//                                         ResourceCommitmentManager resourceCommitment)
//       raises (StartError, PlanError);
//     void destroyManager (in NodeApplicationManager appManager)
//       raises (StopError);
//     Resources getDynamicResources ();
//   };
  
  interface NodeManager {
    /*
     * @todo 06-02-01 mentions a 4th argument:in long updateInterval
     */
    void joinDomain (in Domain ciao_domain,
                     in TargetManager manager,
                     in Logger log);

    void leaveDomain ();

    /*
     * @todo According to 06-02-01 there should also be a ResourceCommitmentManager
     * as second argument
     */
    NodeApplicationManager preparePlan (in DeploymentPlan plan)
      raises (StartError, PlanError);

    /*
     * @todo According to 06-02-01 InvalidReference shouldn't be here
     */
    void destroyManager (in NodeApplicationManager appManager)
      raises (StopError, InvalidReference);

    /// CIAO specific extension
    /// Destroy the NAM and all the associated NAs with this child_plan
    /// We can guarantee that the input DeploymentPlan is valid, since it
    /// is fetched from the cached DeploymentPlan of DAM, which has been
    /// validated before.
    void destroyPlan (in DeploymentPlan plan)
      raises (StopError);

    /// CIAO specific extension
    /// Get all the shared components installed in this node
    ComponentPlans get_shared_components ();

    /*
     * @todo According to 06-02-01 missing is:
     * Resources getDynamicResources ();
     */
  };
};

#endif /* NODEMANAGER_IDL */