com.cloudera.sqoop.util
Class ErrorableThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.cloudera.sqoop.util.ErrorableThread
All Implemented Interfaces:
java.lang.Runnable

public abstract class ErrorableThread
extends java.lang.Thread

A thread which has an error bit which can be set from within the thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ErrorableThread()
           
 
Method Summary
 boolean isErrored()
           
protected  void setError()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorableThread

public ErrorableThread()
Method Detail

setError

protected void setError()

isErrored

public boolean isErrored()


Copyright © 2010 Cloudera, Inc.