summaryrefslogtreecommitdiff
path: root/trunk/CIAO/DAnCE/Deployment/Deployment_ResourceCommitmentManager.idl
blob: 8c1e9c29776c477604c16df3b8c1465f499e8f5e (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
// $Id$
//
#ifndef RESOURCE_COMMITMENT_MANAGER_IDL
#define RESOURCE_COMMITMENT_MANAGER_IDL

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

module Deployment {

  exception ResourceCommitmentFailure {
    string reason;
    long index;
    string propertyName;
    ::CORBA::AnySeq propertyValue;
  };
  /**
   * @struct ResourceAllocation
   * @brief Identifies a resource within a domain that is 
   *  allocated from and the amount it is allocated
   */
  struct ResourceAllocation
  {
    string elementName;
    string resourceName;
    Properties property;
  };

  /// The Resource Allocation Sequence
  typedef sequence <ResourceAllocation> ResourceAllocations;

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


#endif