coreRuntime/src/sc/sync/SyncManager.java
public void receiveNameChange(String oldName, String newName) {
         Object inst = objectIndex.get(oldName);
         if (inst == null)
            System.err.println("*** receiveNameChange - object not found to change name from: " + oldName + " to: " + newName);
         else {
            InstInfo ii = syncInsts.get(inst);
            if (ii == null) {
               System.err.println("*** receiveNameChange - index out of sync");
               return;
            }
            ii.name = newName;
            objectIndex.put(newName, inst);
            objectIndex.remove(oldName);

            SyncProperties props = getSyncPropertiesForInst(inst);

            SyncLayer useLayer = getChangedSyncLayer(props == null ? null : props.syncGroup);
            useLayer.addNameChangeAck(inst, oldName, newName);

            if (trace || verbose || verboseValues) {
               System.out.println("Acknowledging name change of: " + DynUtil.getInstanceName(inst) + " from: " + oldName + " to: " + newName + (!needsSync ? " *** first change in sync" : ""));
            }
            markChanged();
         }
      }
/**
       * Called from the deserializer when we receive a name change from the remote side. It will apply it to the
       * local sync data structure and send back the ack
       */
Called from the deserializer when we receive a name change from the remote side. It will apply it to the
local sync data structure and send back the ack
Called from the deserializer when we receive a name change from the remote side . It will apply it to the local sync data structure and send back the ack
public void receiveNameChange(String oldName, String newName) {
         Object inst = objectIndex.get(oldName);
         if (inst == null)
            System.err.println("*** receiveNameChange - object not found to change name from: " + oldName + " to: " + newName);
         else {
            InstInfo ii = syncInsts.get(inst);
            if (ii == null) {
               System.err.println("*** receiveNameChange - index out of sync");
               return;
            }
            ii.name = newName;
            objectIndex.put(newName, inst);
            objectIndex.remove(oldName);
            SyncProperties props = getSyncPropertiesForInst(inst);
            SyncLayer useLayer = getChangedSyncLayer(props == null ? null : props.syncGroup);
            useLayer.addNameChangeAck(inst, oldName, newName);
            if (trace || verbose || verboseValues) {
               System.out.println("Acknowledging name change of: " + DynUtil.getInstanceName(inst) + " from: " + oldName + " to: " + newName + (!needsSync ? " *** first change in sync" : ""));
            }
            markChanged();
         }
      }
public void receiveNameChange ( String oldName , String newName ) { Object inst = objectIndex . get ( oldName ) ; if ( inst == null ) System . err . println ( "*** receiveNameChange - object not found to change name from: " + oldName + " to: " + newName ) ; else { InstInfo ii = syncInsts . get ( inst ) ; if ( ii == null ) { System . err . println ( "*** receiveNameChange - index out of sync" ) ; return ; } ii . name = newName ; objectIndex . put ( newName , inst ) ; objectIndex . remove ( oldName ) ; SyncProperties props = getSyncPropertiesForInst ( inst ) ; SyncLayer useLayer = getChangedSyncLayer ( props == null ? null : props . syncGroup ) ; useLayer . addNameChangeAck ( inst , oldName , newName ) ; if ( trace || verbose || verboseValues ) { System . out . println ( "Acknowledging name change of: " + DynUtil . getInstanceName ( inst ) + " from: " + oldName + " to: " + newName + ( ! needsSync ? " *** first change in sync" : "" ) ) ; } markChanged ( ) ; } }
Called from the deserializer when we receive a name change from the remote side.
Called from the deserializer when we receive a name change from the remote side .