congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LockingFlowListener.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
cascading.flow.LockingFlowListener
constructor

Best Java code snippets using cascading.flow.LockingFlowListener.<init> (Showing top 10 results out of 315)

origin: cwensel/cascading

Flow fourth = fourthFlow( third.getSink(), path + "/fourth" );
LockingFlowListener firstFlowListener = new LockingFlowListener();
LockingFlowListener secondFlowListener = new LockingFlowListener();
LockingFlowListener thirdFlowListener = new LockingFlowListener();
LockingFlowListener fourthFlowListener = new LockingFlowListener();
origin: cascading/cascading-platform

Flow fourth = fourthFlow( third.getSink(), path + "/fourth" );
LockingFlowListener firstFlowListener = new LockingFlowListener();
LockingFlowListener secondFlowListener = new LockingFlowListener();
LockingFlowListener thirdFlowListener = new LockingFlowListener();
LockingFlowListener fourthFlowListener = new LockingFlowListener();
origin: cwensel/cascading

LockingFlowListener flowListener = new LockingFlowListener();
origin: cascading/cascading-platform

LockingFlowListener flowListener = new LockingFlowListener();
origin: cwensel/cascading

final LockingFlowListener listener = new LockingFlowListener();
origin: cascading/cascading-hadoop2-common

final LockingFlowListener listener = new LockingFlowListener();
origin: cwensel/cascading

@Test
public void testSimpleRiffleCascade() throws IOException, InterruptedException
 {
 getPlatform().copyFromLocal( inputFileIps );
 String path = "perpetualcascade";
 Flow first = firstFlow( path );
 Flow second = secondFlow( first.getSink(), path );
 Flow third = thirdFlow( second.getSink(), path );
 Flow fourth = fourthFlow( third.getSink(), path );
 ProcessFlow firstProcess = new ProcessFlow( "first", first );
 ProcessFlow secondProcess = new ProcessFlow( "second", second );
 ProcessFlow thirdProcess = new ProcessFlow( "third", third );
 ProcessFlow fourthProcess = new ProcessFlow( "fourth", fourth );
 LockingFlowListener flowListener = new LockingFlowListener();
 secondProcess.addListener( flowListener );
 Cascade cascade = new CascadeConnector( getProperties() ).connect( fourthProcess, secondProcess, firstProcess, thirdProcess );
 cascade.start();
 cascade.complete();
 assertTrue( "did not start", flowListener.started.tryAcquire( 2, TimeUnit.SECONDS ) );
 assertTrue( "did not complete", flowListener.completed.tryAcquire( 2, TimeUnit.SECONDS ) );
 validateLength( fourth, 20 );
 }
origin: cwensel/cascading

@Test
public void testStartWithoutComplete() throws Exception
 {
 getPlatform().copyFromLocal( inputFileLower );
 Tap sourceLower = new Hfs( new TextLine( new Fields( "offset", "line" ) ), inputFileLower );
 Map sources = new HashMap();
 sources.put( "lower", sourceLower );
 Function splitter = new RegexSplitter( new Fields( "num", "char" ), " " );
 // using null pos so all fields are written
 Tap sink = new Hfs( new TextLine(), getOutputPath( "withoutcomplete" ), SinkMode.REPLACE );
 Pipe pipeLower = new Each( new Pipe( "lower" ), new Fields( "line" ), splitter );
 pipeLower = new GroupBy( pipeLower, new Fields( "num" ) );
 Flow flow = getPlatform().getFlowConnector( getProperties() ).connect( sources, sink, pipeLower );
 LockingFlowListener listener = new LockingFlowListener();
 flow.addListener( listener );
 flow.start();
 assertTrue( listener.completed.tryAcquire( 90, TimeUnit.SECONDS ) );
 }
origin: cascading/cascading-platform

@Test
public void testSimpleRiffleCascade() throws IOException, InterruptedException
 {
 getPlatform().copyFromLocal( inputFileIps );
 String path = "perpetualcascade";
 Flow first = firstFlow( path );
 Flow second = secondFlow( first.getSink(), path );
 Flow third = thirdFlow( second.getSink(), path );
 Flow fourth = fourthFlow( third.getSink(), path );
 ProcessFlow firstProcess = new ProcessFlow( "first", first );
 ProcessFlow secondProcess = new ProcessFlow( "second", second );
 ProcessFlow thirdProcess = new ProcessFlow( "third", third );
 ProcessFlow fourthProcess = new ProcessFlow( "fourth", fourth );
 LockingFlowListener flowListener = new LockingFlowListener();
 secondProcess.addListener( flowListener );
 Cascade cascade = new CascadeConnector( getProperties() ).connect( fourthProcess, secondProcess, firstProcess, thirdProcess );
 cascade.start();
 cascade.complete();
 assertTrue( "did not start", flowListener.started.tryAcquire( 2, TimeUnit.SECONDS ) );
 assertTrue( "did not complete", flowListener.completed.tryAcquire( 2, TimeUnit.SECONDS ) );
 validateLength( fourth, 20 );
 }
origin: cascading/cascading-hadoop2-common

@Test
public void testStartWithoutComplete() throws Exception
 {
 getPlatform().copyFromLocal( inputFileLower );
 Tap sourceLower = new Hfs( new TextLine( new Fields( "offset", "line" ) ), inputFileLower );
 Map sources = new HashMap();
 sources.put( "lower", sourceLower );
 Function splitter = new RegexSplitter( new Fields( "num", "char" ), " " );
 // using null pos so all fields are written
 Tap sink = new Hfs( new TextLine(), getOutputPath( "withoutcomplete" ), SinkMode.REPLACE );
 Pipe pipeLower = new Each( new Pipe( "lower" ), new Fields( "line" ), splitter );
 pipeLower = new GroupBy( pipeLower, new Fields( "num" ) );
 Flow flow = getPlatform().getFlowConnector( getProperties() ).connect( sources, sink, pipeLower );
 LockingFlowListener listener = new LockingFlowListener();
 flow.addListener( listener );
 flow.start();
 assertTrue( listener.completed.tryAcquire( 90, TimeUnit.SECONDS ) );
 }
cascading.flowLockingFlowListener<init>

Popular methods of LockingFlowListener

  • onCompleted
  • onStarting
  • onStopping
  • onThrowable

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now