- Timestamp:
- 02/12/08 09:51:59 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/Cluster/Base/OSGRemoteAspect.cpp
r1059 r1060 156 156 case NEWTYPE: 157 157 { 158 FDEBUG(("RemoteAspect::receiveSync: NEWTYPE")); 159 158 160 connection.getValue(remoteTypeId); 159 161 connection.getValue(name); 160 162 163 FPDEBUG((" remoteTypeId [%d] name [%s]\n", remoteTypeId, name.c_str())); 164 161 165 // find local type 162 166 fcType = FieldContainerFactory::the()->findType(name.c_str()); … … 180 184 case CREATED: 181 185 { 186 FDEBUG(("RemoteAspect::receiveSync: CREATED")); 187 182 188 connection.getValue(remoteTypeId); 183 189 connection.getValue(remoteId); 184 190 191 FPDEBUG((" remoteTypeId [%d] remoteId [%d]\n", remoteTypeId, remoteId)); 192 185 193 localTypeI = _localType.find(remoteTypeId); 186 194 … … 206 214 207 215 newContainers.push_back(fcPtr); 208 216 209 217 // remove this node, when aspect is removed 210 218 _receivedFC.insert(getContainerId(fcPtr)); … … 228 236 case CHANGED: 229 237 { 238 FDEBUG(("RemoteAspect::receiveSync: CHANGED")); 239 230 240 connection.getValue(remoteId); 231 241 connection.getValue(mask); 232 242 connection.getValue(len); 243 244 FPDEBUG((" [%d]\n", remoteId)); 233 245 234 246 if(getLocalId(remoteId, localId)) … … 260 272 case SYNCENDED: 261 273 { 274 FDEBUG(("RemoteAspect::receiveSync: SYNCENDED\n")); 275 262 276 finish = true; 263 277 break; … … 266 280 case ADDEXTERNALREFED: 267 281 { 282 FDEBUG(("RemoteAspect::receiveSync: ADDEXTERNALREFED")); 283 268 284 connection.getValue(remoteId); 269 285 286 FPDEBUG((" [%d]\n", remoteId)); 287 270 288 if(getLocalId(remoteId, localId)) 271 289 { … … 288 306 case SUBEXTERNALREFED: 289 307 { 308 FDEBUG(("RemoteAspect::receiveSync: SUBEXTERNALREFED")); 309 290 310 connection.getValue(remoteId); 291 311 312 FPDEBUG((" [%d]\n", remoteId)); 313 292 314 if(getLocalId(remoteId,localId)) 293 315 { … … 310 332 case IDMAPPING: 311 333 { 334 FDEBUG(("RemoteAspect::receiveSync: IDMAPPING")); 335 312 336 connection.getValue(remoteId); 313 337 connection.getValue(localAspect); 314 338 connection.getValue(localId); 315 339 340 FPDEBUG((" remoteId [%d] localAspect [%d] localId [%d]\n", 341 remoteId, localAspect, localId)); 342 316 343 if(localAspect != _aspectId) 317 344 { … … 344 371 commitChangesAndClear(); 345 372 } 346 373 347 374 // unregister mapper into factory 348 375 factory->setMapper(NULL); … … 387 414 handleFCMapping(connection); 388 415 416 FDEBUG(("RemoteAspect:sendSync: Dumping list CL sizes:\n")); 417 changeList->dumpListSizes(); 418 changeList->dump(); 419 389 420 for( changedI = changeList->beginCreated(); 390 421 changedI != changeList->endCreated (); … … 415 446 connection.putValue(typeId); 416 447 connection.putValue(typeName); 448 449 FDEBUG(("RemoteAspect::sendSync: NEWTYPE typeId [%d] typeName [%s]\n", typeId, typeName.c_str())); 417 450 } 418 451 … … 422 455 connection.putValue((*changedI)->uiContainerId); 423 456 457 FDEBUG(("RemoteAspect::sendSync: CREATED typeId [%d] containerId [%d]\n", typeId, (*changedI)->uiContainerId)); 424 458 #if 0 425 459 fprintf(stderr, "Send Create %d %d\n", … … 440 474 ++changedI) 441 475 { 442 fcPtr = fcFactory->getContainer((*changedI)->uiContainerId);443 444 if(fcPtr == NullFC)445 {446 continue;447 }448 476 if((*changedI)->uiEntryDesc == ContainerChangeEntry::Change) 449 477 { 478 fcPtr = fcFactory->getContainer((*changedI)->uiContainerId); 479 480 if(fcPtr == NullFC) 481 continue; // skip, if object is destroyed 450 482 451 483 mask = (*changedI)->whichField; … … 460 492 mask &= TypeTraits<BitVector>::BitsSet ^ filterI->second; 461 493 } 462 463 494 464 495 #if 0 … … 485 516 fcPtr->copyToBin(connection, mask); 486 517 487 FDEBUG((" Changed: %s ID:%d Mask:%lld\n",518 FDEBUG(("RemoteAspect::sendSync: CHANGED [%s] ID [%d] Mask [%lld]\n", 488 519 fcPtr->getType().getName().str(), 489 520 getContainerId(fcPtr), … … 493 524 else if((*changedI)->uiEntryDesc == ContainerChangeEntry::AddExternalReference) 494 525 { 526 FDEBUG(("RemoteAspect::sendSync: ADDEXTERNALREFED\n")); 527 495 528 UInt32 id = (*changedI)->uiContainerId; 496 529 … … 501 534 connection.putValue(cmd); 502 535 connection.putValue(id); 536 537 FDEBUG(("RemoteAspect::sendSync: transmitted ADDEXTERNALREFED id [%d]\n", id)); 503 538 } 504 539 else if((*changedI)->uiEntryDesc == ContainerChangeEntry::SubExternalReference) 505 540 { 541 FDEBUG(("RemoteAspect::sendSync: SUBEXTERNALREFED\n")); 542 506 543 UInt32 id = (*changedI)->uiContainerId; 507 544 … … 513 550 connection.putValue(cmd); 514 551 connection.putValue(id); 552 553 FDEBUG(("RemoteAspect::sendSync: transmitted SUBEXTERNALREFED id [%d]\n", id)); 515 554 } 516 555 } … … 615 654 */ 616 655 617 bool RemoteAspect::callCreated( const FieldContainerPtr &fcp)656 bool RemoteAspect::callCreated(FieldContainerPtrConst fcp) 618 657 { 619 658 bool result; … … 637 676 */ 638 677 639 bool RemoteAspect::callDestroyed( const FieldContainerPtr &fcp)678 bool RemoteAspect::callDestroyed(FieldContainerPtrConst fcp) 640 679 { 641 680 bool result; … … 659 698 */ 660 699 661 bool RemoteAspect::callChanged( const FieldContainerPtr &fcp)700 bool RemoteAspect::callChanged(FieldContainerPtrConst fcp) 662 701 { 663 702 bool result;
