com.cloudera.sqoop.util
Class ErrorableAsyncSink

java.lang.Object
  extended by com.cloudera.sqoop.util.AsyncSink
      extended by com.cloudera.sqoop.util.ErrorableAsyncSink

public abstract class ErrorableAsyncSink
extends AsyncSink

Partial implementation of AsyncSink that relies on ErrorableThread to provide a status bit for the join() method.


Field Summary
protected  ErrorableThread child
           
 
Constructor Summary
ErrorableAsyncSink()
           
 
Method Summary
 int join()
          Wait until the stream has been processed.
 
Methods inherited from class com.cloudera.sqoop.util.AsyncSink
processStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

child

protected ErrorableThread child
Constructor Detail

ErrorableAsyncSink

public ErrorableAsyncSink()
Method Detail

join

public int join()
         throws java.lang.InterruptedException
Description copied from class: AsyncSink
Wait until the stream has been processed.

Specified by:
join in class AsyncSink
Returns:
a status code indicating success or failure. 0 is typical for success.
Throws:
java.lang.InterruptedException


Copyright © 2010 Cloudera, Inc.