summaryrefslogtreecommitdiff
path: root/DAnCE/dance/Deployment/Deployment_ResourceCommitmentManager.idl
blob: 6d8569c07415fc6fd2f9340558e614be30db0683 (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
//
#ifndef RESOURCE_COMMITMENT_MANAGER_IDL
#define RESOURCE_COMMITMENT_MANAGER_IDL

#include "dance/Deployment/Deployment_Base.idl"
#include "tao/AnyTypeCode/AnySeq.pidl"

module Deployment {
  struct ResourceAllocation {
    string elementName;
    string resourceName;
    Properties property;
  };

  typedef sequence < ResourceAllocation > ResourceAllocations;

  exception ResourceCommitmentFailure {
    string reason;
    long index;
    string propertyName;
    CORBA::AnySeq propertyValue;
  };

  interface ResourceCommitmentManager {
    void commitResources (in ResourceAllocations resources)
      raises (ResourceCommitmentFailure);
    void releaseResources (in ResourceAllocations resources)
      raises (ResourceCommitmentFailure);
  };
};

#endif //RESOURCE_COMMITMENT_MANAGER_IDL