@Override public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases )
throws KettleException {
this.namedCluster = namedClusterLoadSaveUtil.loadClusterConfig( namedClusterService, id_step, rep, metaStore, null, getLog() );
m_coreConfigURL = rep.getStepAttributeString( id_step, 0, "core_config_url" );
m_defaultConfigURL = rep.getStepAttributeString( id_step, 0, "default_config_url" );
m_targetTableName = rep.getStepAttributeString( id_step, 0, "target_table_name" );
m_targetMappingName = rep.getStepAttributeString( id_step, 0, "target_mapping_name" );
m_deleteRowKey = rep.getStepAttributeBoolean( id_step, 0, "delete_rows_by_key" );
m_writeBufferSize = rep.getStepAttributeString( id_step, 0, "write_buffer_size" );
m_disableWriteToWAL = rep.getStepAttributeBoolean( id_step, 0, "disable_wal" );
Mapping tempMapping = null;
try {
tempMapping =
getService().getMappingFactory().createMapping();
} catch ( Exception e ) {
getLog().logError( e.getMessage() );
}
if ( tempMapping != null && tempMapping.readRep( rep, id_step ) ) {
m_mapping = tempMapping;
} else {
m_mapping = null;
}
}