public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), true, event.getEventId() )); }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), true, event.getEventId() )); } }
public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), true, event.getEventId() )); }
public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), true, event.getEventId() )); }
public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), true, event.getEventId() )); }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), true, event.getEventId() )); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), true, event.getEventId() )); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = alterTableMessage.getDB(); final String tableName = alterTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), true, event.getEventId() )); } }