CIAO::Containers_Info_Map Class Reference

#include <Containers_Info_Map.h>

Collaboration diagram for CIAO::Containers_Info_Map:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Containers_Info_Map (const Deployment::DeploymentPlan &plan, const Deployment::ComponentPlans &shared_components)
Deployment::ContainerImplementationInfos * containers_info (void)

Protected Member Functions

void update_loader_path (void)
bool resolve_http_reference (const char *location, ACE_CString &arti_name, ACE_CString &name)
bool retrieve_via_HTTP (const char *URL, ACE_Message_Block &mb)
bool write_to_disk (const char *full_path, ACE_Message_Block &mb, bool replace=true)

Protected Attributes

ACE_CString HTTP_DOWNLOAD_PATH

Private Types

typedef ACE_Hash_Map_Manager_Ex<
ACE_CString, Deployment::ContainerImplementationInfo *,
ACE_Hash< ACE_CString >,
ACE_Equal_To< ACE_CString >,
ACE_Null_Mutex
MAP
typedef MAP::iterator Iterator

Private Member Functions

void initialize_map (void)
bool build_map (void)
bool insert_instance_into_map (const Deployment::InstanceDeploymentDescription &instance)
bool insert_instance_into_container (const Deployment::InstanceDeploymentDescription &instance, Deployment::ComponentImplementationInfos &impl_infos)
bool is_shared_component (ACE_CString &name)

Private Attributes

MAP map_
const Deployment::DeploymentPlan & plan_
Deployment::ComponentPlans shared_components_

Member Typedef Documentation

typedef MAP::iterator CIAO::Containers_Info_Map::Iterator [private]

typedef ACE_Hash_Map_Manager_Ex<ACE_CString, Deployment::ContainerImplementationInfo *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> CIAO::Containers_Info_Map::MAP [private]


Constructor & Destructor Documentation

CIAO::Containers_Info_Map::Containers_Info_Map ( const Deployment::DeploymentPlan &  plan,
const Deployment::ComponentPlans &  shared_components 
)


Member Function Documentation

bool CIAO::Containers_Info_Map::build_map ( void   )  [private]

Deployment::ContainerImplementationInfos * CIAO::Containers_Info_Map::containers_info ( void   ) 

void CIAO::Containers_Info_Map::initialize_map ( void   )  [private]

bool CIAO::Containers_Info_Map::insert_instance_into_container ( const Deployment::InstanceDeploymentDescription &  instance,
Deployment::ComponentImplementationInfos &  impl_infos 
) [private]

bool CIAO::Containers_Info_Map::insert_instance_into_map ( const Deployment::InstanceDeploymentDescription &  instance  )  [private]

bool CIAO::Containers_Info_Map::is_shared_component ( ACE_CString name  )  [private]

Helper function to check wheather a component instance is in the "shared components list".

bool CIAO::Containers_Info_Map::resolve_http_reference ( const char *  location,
ACE_CString arti_name,
ACE_CString name 
) [protected]

This function resolves any http location references in the name of the implementation artifacts It returns true on success and false on failure

bool CIAO::Containers_Info_Map::retrieve_via_HTTP ( const char *  URL,
ACE_Message_Block mb 
) [protected]

function to retvieve a file via HTTP stores the file in the passed preallocated ACE_Message_Block returns 1 on success 0 on error

void CIAO::Containers_Info_Map::update_loader_path ( void   )  [protected]

This function checks if the HTTP_DOWNLOAD_PATH is in the library load path

bool CIAO::Containers_Info_Map::write_to_disk ( const char *  full_path,
ACE_Message_Block mb,
bool  replace = true 
) [protected]

function that writes out a file to a specified location on the hand disk returns 1 on success 0 on already exists and replace == false 0 on error


Member Data Documentation

ACE_CString CIAO::Containers_Info_Map::HTTP_DOWNLOAD_PATH [protected]

------------------------------------------------------------------- HTTP capability

Author:
Stoyan Paunov
Purpose: Adding the HTTP access code which will resove any references to HTTP URLs

MAP CIAO::Containers_Info_Map::map_ [private]

const Deployment::DeploymentPlan& CIAO::Containers_Info_Map::plan_ [private]

Deployment::ComponentPlans CIAO::Containers_Info_Map::shared_components_ [private]

shared components list, passed in from NodeImplementationInfoHandler class.


The documentation for this class was generated from the following files:
Generated on Tue Nov 21 10:20:25 2006 for DAnCE by  doxygen 1.4.7-1