summaryrefslogtreecommitdiff
path: root/modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-06-23 18:13:34 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-06-23 18:13:34 +0000
commit693dbbf405678983b1997665c9b0c34ad8dfd687 (patch)
tree44b09ba86e415bf88acea39b6a2c14f539e14a69 /modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp
parentfe7da604711a2fef1973b1ca3905503b1e60626e (diff)
downloadATCD-693dbbf405678983b1997665c9b0c34ad8dfd687.tar.gz
Tue Jun 23 18:11:56 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
Diffstat (limited to 'modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp')
-rw-r--r--modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp21
1 files changed, 15 insertions, 6 deletions
diff --git a/modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp b/modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp
index e7c49502975..1b43b6e22bd 100644
--- a/modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp
+++ b/modules/CIAO/DAnCE/TargetManager/ResourceCommitmentManager.cpp
@@ -2,20 +2,25 @@
//
#include "DomainDataManager.h"
#include "ResourceCommitmentManager.h"
+#include "DAnCE/Logger/Log_Macros.h"
// Implementation skeleton constructor
-CIAO::ResourceCommitmentManager_i::ResourceCommitmentManager_i (void)
+DAnCE::ResourceCommitmentManager_i::ResourceCommitmentManager_i (void)
{
+ DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i");
}
// Implementation skeleton destructor
-CIAO::ResourceCommitmentManager_i::~ResourceCommitmentManager_i (void)
+DAnCE::ResourceCommitmentManager_i::~ResourceCommitmentManager_i (void)
{
+ DANCE_TRACE ("DAnCE::~ResourceCommitmentManager_i");
}
-void CIAO::ResourceCommitmentManager_i::commitResources (
+void DAnCE::ResourceCommitmentManager_i::commitResources (
const ::Deployment::ResourceAllocations& resources)
{
+ DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i::commitResources");
+
DOMAIN_DATA_MANAGER->commitResourceAllocation (resources);
// commit succesful .. add to commited resource
@@ -23,11 +28,13 @@ void CIAO::ResourceCommitmentManager_i::commitResources (
return;
}
-void CIAO::ResourceCommitmentManager_i::releaseResources (
+void DAnCE::ResourceCommitmentManager_i::releaseResources (
const ::Deployment::ResourceAllocations & resources)
{
+ DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i::releaseResources");
+
::Deployment::ResourceAllocations res;
-
+
// if the resources set is null , use the already allocated resources ..
if (resources.length () == 0)
res = this->resources_;
@@ -38,9 +45,11 @@ void CIAO::ResourceCommitmentManager_i::releaseResources (
return;
}
-int CIAO::ResourceCommitmentManager_i::add_to_commited_resource (
+int DAnCE::ResourceCommitmentManager_i::add_to_commited_resource (
::Deployment::ResourceAllocations res)
{
+ DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i::add_to_commited_resource");
+
CORBA::ULong const current_length = this->resources_.length ();
this->resources_.length (current_length + res.length ());