/** * Asks all steps to stop but doesn't wait around for it to happen. This is a special method for use with mappings. */ private void killAllNoWait() { if ( steps == null ) { return; } for ( int i = 0; i < steps.size(); i++ ) { StepMetaDataCombi sid = steps.get( i ); StepInterface step = sid.step; if ( log.isDebug() ) { log.logDebug( BaseMessages.getString( PKG, "Trans.Log.LookingAtStep" ) + step.getStepname() ); } step.stopAll(); try { Thread.sleep( 20 ); } catch ( Exception e ) { log.logError( BaseMessages.getString( PKG, "Trans.Log.TransformationErrors" ) + e.toString() ); return; } } }
sid.step.stopAll(); try { Thread.sleep( 20 );
} finally { step.setErrors( 1 ); step.stopAll();