public void transStopped( Trans parentTrans ) { injectTrans.stopAll(); } } );
@Override public void stopAll() { stopped.set( true ); trans.stopAll(); }
public void breakPointHit( TransDebugMeta transDebugMeta, StepDebugMeta stepDebugMeta, RowMetaInterface rowBufferMeta, List<Object[]> rowBuffer ) { System.out.println( "break point hit...".concat( String.valueOf( stepDebugMeta.getRowCount() ) ) ); trans.stopAll(); } } );
@GET @Path( "/stop/{id : .+}" ) @Produces( { MediaType.APPLICATION_JSON } ) public TransformationStatus stopTransformation( @PathParam( "id" ) String id ) { CarteResource.getTransformation( id ).stopAll(); return getTransformationStatus( id ); }
public void stop() { stopped = true; for ( Trans subTrans : running ) { subTrans.stopAll(); } running.clear(); for ( Map.Entry<String, StepStatus> entry : statuses.entrySet() ) { entry.getValue().setStatusDescription( StepExecutionStatus.STATUS_STOPPED.getDescription() ); } }
@Override public void rowWrittenEvent( RowMetaInterface rowMeta, Object[] row ) throws KettleStepException { rowsData.add( row ); // If we have enough rows we can stop // if ( rowsData.size() > PropsUI.getInstance().getDefaultPreviewSize() ) { trans.stopAll(); } } } );
@Override public void run() { try { endProcessing(); } catch ( Exception e ) { log.logError( BaseMessages.getString( PKG, "Trans.Exception.UnableToPerformIntervalLogging" ), e ); // Also stop the show... // errors.incrementAndGet(); stopAll(); } } };
public void stopRunning( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) throws KettleException { if ( getData().mappingTrans != null ) { getData().mappingTrans.stopAll(); } }
@Override public void run() { try { lastWrittenStepPerformanceSequenceNr = writeStepPerformanceLogRecords( lastWrittenStepPerformanceSequenceNr, LogStatus.RUNNING ); } catch ( Exception e ) { log.logError( BaseMessages.getString( PKG, "Trans.Exception.UnableToPerformIntervalPerformanceLogging" ), e ); // Also stop the show... // errors.incrementAndGet(); stopAll(); } } };
public void stopRunning( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) throws KettleException { if ( getData().mappingTrans != null ) { getData().mappingTrans.stopAll(); } }
public void stopAll() { // Stop the mapping step. if ( getData().mappingTrans != null ) { getData().mappingTrans.stopAll(); } // Also stop this step super.stopAll(); }
@Override public void run() { try { start.await(); } catch ( InterruptedException e ) { throw new RuntimeException(); } while ( !isStopped() ) { trans.stopAll(); } } }
public void stopAll() { // Stop the mapping step. if ( getData().mappingTrans != null ) { getData().mappingTrans.stopAll(); } // Also stop this step super.stopAll(); }
public void stopRunning( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) throws KettleException { if ( getData().getExecutorTrans() != null ) { getData().getExecutorTrans().stopAll(); } }
public void stopRunning( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) throws KettleException { if ( getData().getMappingTrans() != null ) { getData().getMappingTrans().stopAll(); } }
@Before public void setUp() throws Exception { stepMockHelper = new StepMockHelper<SystemDataMeta, SystemDataData>( "SYSTEM_DATA TEST", SystemDataMeta.class, SystemDataData.class ); when( stepMockHelper.logChannelInterfaceFactory.create( any(), any( LoggingObjectInterface.class ) ) ).thenReturn( stepMockHelper.logChannelInterface ); when( stepMockHelper.trans.isRunning() ).thenReturn( true ); verify( stepMockHelper.trans, never() ).stopAll(); }
public void stopAll() { // Stop the transformation execution. if ( getData().getExecutorTrans() != null ) { getData().getExecutorTrans().stopAll(); } // Also stop this step super.stopAll(); }
public void stopAll() { // Stop the mapping step. if ( getData().getMappingTrans() != null ) { getData().getMappingTrans().stopAll(); } // Also stop this step super.stopAll(); }
@Test public void testSafeStop() throws Exception { prepareOneRowForExecutor(); meta.setGroupSize( "1" ); data.groupSize = 1; internalResult.setSafeStop( true ); executor.init( meta, data ); executor.setInputRowMeta( new RowMeta() ); assertTrue( executor.processRow( meta, data ) ); verify( executor.getTrans() ).safeStop(); verify( executor.getTrans(), never() ).stopAll(); }
@Test public void testAbortWithError() throws Exception { prepareOneRowForExecutor(); meta.setGroupSize( "1" ); data.groupSize = 1; internalResult.setSafeStop( false ); internalResult.setNrErrors( 1 ); executor.init( meta, data ); executor.setInputRowMeta( new RowMeta() ); assertTrue( executor.processRow( meta, data ) ); verify( executor.getTrans(), never() ).safeStop(); verify( executor.getTrans(), never() ).stopAll(); } }