summaryrefslogtreecommitdiff
path: root/flat/CIAO/DAnCE/Deployment/Deployment_ResourceCommitmentManager.idl
blob: 0ef50a5470eeeedcabfcb8fc5d3d8db28360aac7 (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
// $Id$
//
#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