@Test public void synchronizeSlaveServerRenameRepository() throws Exception { try { spoon.rep = repository; final String objectId = "object-id"; final String serverName = "SharedServer"; JobMeta job1 = createJobMeta(); job1.setRepository( repository ); job1.setSharedObjects( createSharedObjects( SHARED_OBJECTS_FILE ) ); SlaveServer server1 = createSlaveServer( serverName, false ); server1.setObjectId( new StringObjectId( objectId ) ); job1.addOrReplaceSlaveServer( server1 ); spoonDelegates.jobs.addJob( job1 ); JobMeta job2 = createJobMeta(); job2.setRepository( repository ); job2.setSharedObjects( createSharedObjects( SHARED_OBJECTS_FILE ) ); SlaveServer server2 = createSlaveServer( serverName, false ); server2.setObjectId( new StringObjectId( objectId ) ); spoonDelegates.jobs.addJob( job2 ); server2.setName( AFTER_SYNC_VALUE ); sharedUtil.synchronizeSlaveServers( server2 ); job2.addOrReplaceSlaveServer( server2 ); assertEquals( AFTER_SYNC_VALUE, job1.getSlaveServers().get( 0 ).getName() ); } finally { spoon.rep = null; } }
public synchronized void synchronizeSlaveServers( SlaveServer slaveServer ) { synchronizeSlaveServers( slaveServer, slaveServer.getName() ); }
SharedObjectSyncUtil { public synchronized void synchronizeSlaveServers( SlaveServer slaveServer ) { synchronizeSlaveServers( slaveServer, slaveServer.getName() ); } }
SharedObjectSyncUtil { public synchronized void synchronizeSlaveServers( SlaveServer slaveServer ) { synchronizeSlaveServers( slaveServer, slaveServer.getName() ); } SharedObjectSyncUtil( Spoon spoon ); }
SharedObjectSyncUtil { public synchronized void synchronizeSlaveServers( SlaveServer slaveServer ) { synchronizeSlaveServers( slaveServer, slaveServer.getName() ); } SharedObjectSyncUtil( Spoon spoon ); synchronized void synchronizeConnections( DatabaseMeta database ); synchronized void synchronizeConnections( DatabaseMeta database, String originalName ); synchronized void synchronizeSlaveServers( SlaveServer slaveServer ); synchronized void synchronizeSlaveServers( SlaveServer slaveServer, String originalName ); synchronized void deleteSlaveServer( SlaveServer removed ); synchronized void deleteClusterSchema( ClusterSchema removed ); synchronized void deletePartitionSchema( PartitionSchema removed ); synchronized void reloadTransformationRepositoryObjects( boolean includeActive ); synchronized void reloadJobRepositoryObjects( boolean includeActive ); synchronized void reloadSharedObjects(); synchronized void synchronizeClusterSchemas( ClusterSchema clusterSchema ); synchronized void synchronizeClusterSchemas( ClusterSchema clusterSchema, String originalName ); synchronized void synchronizePartitionSchemas( PartitionSchema partitionSchema ); synchronized void synchronizePartitionSchemas( PartitionSchema partitionSchema, String originalName ); synchronized void synchronizeSteps( StepMeta step ); synchronized void synchronizeSteps( StepMeta step, String originalName ); }
SharedObjectSyncUtil { public synchronized void synchronizeSlaveServers( SlaveServer slaveServer ) { synchronizeSlaveServers( slaveServer, slaveServer.getName() ); } SharedObjectSyncUtil( Spoon spoon ); synchronized void synchronizeConnections( DatabaseMeta database ); synchronized void synchronizeConnections( DatabaseMeta database, String originalName ); synchronized void synchronizeSlaveServers( SlaveServer slaveServer ); synchronized void synchronizeSlaveServers( SlaveServer slaveServer, String originalName ); synchronized void deleteSlaveServer( SlaveServer removed ); synchronized void deleteClusterSchema( ClusterSchema removed ); synchronized void deletePartitionSchema( PartitionSchema removed ); synchronized void reloadTransformationRepositoryObjects( boolean includeActive ); synchronized void reloadJobRepositoryObjects( boolean includeActive ); synchronized void reloadSharedObjects(); synchronized void synchronizeClusterSchemas( ClusterSchema clusterSchema ); synchronized void synchronizeClusterSchemas( ClusterSchema clusterSchema, String originalName ); synchronized void synchronizePartitionSchemas( PartitionSchema partitionSchema ); synchronized void synchronizePartitionSchemas( PartitionSchema partitionSchema, String originalName ); synchronized void synchronizeSteps( StepMeta step ); synchronized void synchronizeSteps( StepMeta step, String originalName );  }