@Override public void prepare() { try { if( logicalInput != null ) { LOG.info( "calling {}#start() on: {} {}", logicalInput.getClass().getSimpleName(), getBoundary(), Pipe.id( getBoundary() ) ); logicalInput.start(); } if( logicalOutputs != null ) { for( LogicalOutput logicalOutput : logicalOutputs ) { LOG.info( "calling {}#start() on: {} {}", logicalOutput.getClass().getSimpleName(), getBoundary(), Pipe.id( getBoundary() ) ); logicalOutput.start(); } } } catch( Exception exception ) { throw new CascadingException( "unable to start input/output", exception ); } if( role != IORole.source ) collector = new MeasuredOutputCollector( flowProcess, SliceCounters.Write_Duration, createOutputCollector() ); super.prepare(); }
@Override public void prepare() { try { if( logicalInput != null ) { LOG.info( "calling {}#start() on: {} {}", logicalInput.getClass().getSimpleName(), getBoundary(), Pipe.id( getBoundary() ) ); logicalInput.start(); } if( logicalOutputs != null ) { for( LogicalOutput logicalOutput : logicalOutputs ) { LOG.info( "calling {}#start() on: {} {}", logicalOutput.getClass().getSimpleName(), getBoundary(), Pipe.id( getBoundary() ) ); logicalOutput.start(); } } } catch( Exception exception ) { throw new CascadingException( "unable to start input/output", exception ); } if( role != IORole.source ) collector = new MeasuredOutputCollector( flowProcess, SliceCounters.Write_Duration, createOutputCollector() ); super.prepare(); }