Changeset 7833
- Timestamp:
- 06/11/08 03:44:14 (5 years ago)
- Location:
- ossiedev/branches/ssayed/devs/src/system
- Files:
-
- 4 modified
-
nodebooter/nodebooter.cpp (modified) (2 diffs)
-
ossie/framework/DomainManager_impl.cpp (modified) (2 diffs)
-
ossie/framework/FileManager_impl.cpp (modified) (1 diff)
-
ossie/framework/FileSystem_impl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/ssayed/devs/src/system/nodebooter/nodebooter.cpp
r7809 r7833 97 97 dmdFile = new string(optarg); 98 98 else 99 dmdFile = new string(" domain/DomainManager.dmd.xml");99 dmdFile = new string("/DomainManager.dmd.xml"); 100 100 101 101 break; … … 148 148 // Create Domain Manager servant and object 149 149 150 DomainManager_servant = new DomainManager_impl(dmdFile->c_str(), "/sdr ");150 DomainManager_servant = new DomainManager_impl(dmdFile->c_str(), "/sdr/domain"); 151 151 DomainManager_objref = DomainManager_servant->_this(); 152 152 -
ossiedev/branches/ssayed/devs/src/system/ossie/framework/DomainManager_impl.cpp
r7809 r7833 62 62 _fileSys = _fileSysImpl->_this(); 63 63 // Mount the file system to the file manager 64 _fileMgr->mount("/", _fileSys); 64 try 65 { 66 _fileMgr->mount("/", _fileSys); 67 } catch( CF::InvalidFileName &_ex ) { 68 std::cout << "[DomainManager::ctor] While mounting File System: " << _ex.msg << "\n"; 69 exit(EXIT_FAILURE); 70 } /*catch( CF::InvalidFileSystem &_ex ) { 71 std::cout << "[DomainManager::ctor] While mounting File System: Invalid File System\n"; 72 exit(EXIT_FAILURE); 73 } catch( CF::MointPointAlreadyExists &_ex ) { 74 std::cout << "[DomainManager::ctor] While mounting File System: Moint point already exists\n"; 75 exit(EXIT_FAILURE); 76 }*/ catch( ... ) { exit(EXIT_FAILURE); } 65 77 // Parse the DMD profile 66 CF::File_var _dmd = _fileMgr->open( _domainManagerProfile.c_str(), true ); 78 CF::File_var _dmd; 79 try 80 { 81 _dmd = _fileMgr->open( _domainManagerProfile.c_str(), true ); 82 } catch( CF::InvalidFileName &_ex ) { 83 std::cout << "[DomainManager::ctor] While opening DMD: " << _ex.msg << "\n"; 84 exit(EXIT_FAILURE); 85 } catch( CF::FileException &_ex ) { 86 std::cout << "[DomainManager::ctor] While opening DMD: " << _ex.msg << "\n"; 87 exit(EXIT_FAILURE); 88 } catch( ... ) { exit(EXIT_FAILURE); } 89 67 90 DMDParser _DMDParser ( _dmd ); 68 91 _dmd->close(); … … 73 96 74 97 /// \todo Discuss using filename + path directly from xml and screwing with FileSystem 75 CF::FileSystem::FileInformationSequence_var _dmdSoftPkg 76 = _fileMgr->list (_DMDParser.getDomainManagerSoftPkg ()); 77 CF::File_var _spd = _fileMgr->open( _DMDParser.getDomainManagerSoftPkg(), true ); 98 CF::FileSystem::FileInformationSequence_var _dmdSoftPkg; 99 try 100 { 101 _dmdSoftPkg = _fileMgr->list (_DMDParser.getDomainManagerSoftPkg ()); 102 } catch( CF::InvalidFileName &_ex ) { 103 std::cout << "[DomainManager::ctor] While obtaining File Information Sequence: " << _ex.msg << "\n"; 104 exit(EXIT_FAILURE); 105 } catch( CF::FileException &_ex ) { 106 std::cout << "[DomainManager::ctor] While obtaining File Information Sequence: " << _ex.msg << "\n"; 107 exit(EXIT_FAILURE); 108 } catch( ... ) { exit(EXIT_FAILURE); } 109 110 CF::File_var _spd; 111 try 112 { 113 _spd = _fileMgr->open( _DMDParser.getDomainManagerSoftPkg(), true ); 114 } catch( CF::InvalidFileName &_ex ) { 115 std::cout << "[DomainManager::ctor] While opening SPD: " << _ex.msg << "\n"; 116 exit(EXIT_FAILURE); 117 } catch( CF::FileException &_ex ) { 118 std::cout << "[DomainManager::ctor] While opening SPD: " << _ex.msg << "\n"; 119 exit(EXIT_FAILURE); 120 } 78 121 SPDParser _DM_SPD_Parser ( _spd ); 79 122 _spd->close(); -
ossiedev/branches/ssayed/devs/src/system/ossie/framework/FileManager_impl.cpp
r7809 r7833 220 220 221 221 if (pattern[0] != '/') 222 throw CF::InvalidFileName(CF::CFEINVAL, " Relative path passed to FileManger::list.");222 throw CF::InvalidFileName(CF::CFEINVAL, "[FileManager::list] Relative path given."); 223 223 224 224 try { -
ossiedev/branches/ssayed/devs/src/system/ossie/framework/FileSystem_impl.cpp
r7809 r7833 251 251 if (!exists(fileName)) { 252 252 DEBUG(6, FileSystem, "FileName does not exist in open, throwing exception."); 253 throw CF::FileException(CF::CFEEXIST, " File does not exist.");253 throw CF::FileException(CF::CFEEXIST, "[FileSystem::open] File does not exist."); 254 254 } 255 255