org.apache.hadoop.hbase.errorhandling
Class TimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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 |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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)
getStart
public long getStart()
getEnd
public long getEnd()
getMaxAllowedOperationTime
public long getMaxAllowedOperationTime()
getSourceName
public String getSourceName()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.