summaryrefslogtreecommitdiff
path: root/DAnCE/dance/TargetManager/ResourceCommitmentManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DAnCE/dance/TargetManager/ResourceCommitmentManager.cpp')
-rw-r--r--DAnCE/dance/TargetManager/ResourceCommitmentManager.cpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/DAnCE/dance/TargetManager/ResourceCommitmentManager.cpp b/DAnCE/dance/TargetManager/ResourceCommitmentManager.cpp
deleted file mode 100644
index ddc28817a25..00000000000
--- a/DAnCE/dance/TargetManager/ResourceCommitmentManager.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-#include "ResourceCommitmentManager.h"
-#include "DomainDataManager.h"
-#include "dance/Logger/Log_Macros.h"
-
-DAnCE::ResourceCommitmentManager_i::ResourceCommitmentManager_i (void)
-{
- DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i");
-}
-
-DAnCE::ResourceCommitmentManager_i::~ResourceCommitmentManager_i (void)
-{
- DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i::~ResourceCommitmentManager_i");
-}
-
-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, we get an exception
- // if the method above fails
- this->add_to_committed_resource (resources);
-}
-
-void
-DAnCE::ResourceCommitmentManager_i::releaseResources (
- const ::Deployment::ResourceAllocations & resources)
-{
- DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i::releaseResources");
-
- // If the resources set is null, use the already allocated resources ..
- if (resources.length () == 0)
- {
- DOMAIN_DATA_MANAGER->releaseResourceAllocation (this->resources_);
- }
- else
- {
- DOMAIN_DATA_MANAGER->releaseResourceAllocation (resources);
- }
-}
-
-void
-DAnCE::ResourceCommitmentManager_i::add_to_committed_resource (
- ::Deployment::ResourceAllocations res)
-{
- DANCE_TRACE ("DAnCE::ResourceCommitmentManager_i::add_to_committed_resource");
-
- CORBA::ULong const current_length = this->resources_.length ();
-
- this->resources_.length (current_length + res.length ());
-
- for (CORBA::ULong i = 0;i < res.length ();i++)
- {
- this->resources_[current_length + i] = res[i];
- }
-}