Package cascading.flow

Examples of cascading.flow.Flow.stop()


      }
    } );

    start.acquire();
    LOG.info( "calling stop" );
    flow.stop();

    long stopTime = System.nanoTime() - startTime;
    long completeTime = future.get();

    assertTrue( String.format( "stop: %s complete: %s", stopTime, completeTime ), stopTime <= completeTime );
View Full Code Here


    pipeLower = new GroupBy( pipeLower, new Fields( "num" ) );

    Flow flow = getPlatform().getFlowConnector( getProperties() ).connect( sources, sink, pipeLower );

    flow.start();
    flow.stop(); // should not fail
    }

  @Test
  public void testFailingListenerStarting() throws Exception
    {
View Full Code Here

          break;
        }

      LOG.info( "calling stop" );

      flow.stop();
      }

    assertTrue( "did not complete", listener.completed.tryAcquire( 120, TimeUnit.SECONDS ) );
    assertTrue( "did not stop", listener.stopped.tryAcquire( 120, TimeUnit.SECONDS ) );
View Full Code Here

      Flow flow = lingualConnection.getCurrentFlow();

      if( flow != null )
        {
        LOG.info( "stopping flow: {}", flow.getID() );
        flow.stop();
        }
      }
    }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.