org.apache.hadoop.hbase.errorhandling
Class TimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.hadoop.hbase.errorhandling.TimeoutException
All Implemented Interfaces:
Serializable

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class TimeoutException
extends Exception

Exception for timeout of a task.

See Also:
TimeoutExceptionInjector, Serialized Form

Constructor Summary
TimeoutException(String sourceName, long start, long end, long expected)
          Exception indicating that an operation attempt has timed out
 
Method Summary
 long getEnd()
           
 long getMaxAllowedOperationTime()
           
 String getSourceName()
           
 long getStart()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeoutException

public TimeoutException(String sourceName,
                        long start,
                        long end,
                        long expected)
Exception indicating that an operation attempt has timed out

Parameters:
start - time the operation started (ms since epoch)
end - time the timeout was triggered (ms since epoch)
expected - expected amount of time for the operation to complete (ms) (ideally, expected <= end-start)
Method Detail

getStart

public long getStart()

getEnd

public long getEnd()

getMaxAllowedOperationTime

public long getMaxAllowedOperationTime()

getSourceName

public String getSourceName()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.