org.apache.hadoop.hive.common
Class HiveInterruptUtils

java.lang.Object
  extended by org.apache.hadoop.hive.common.HiveInterruptUtils

public class HiveInterruptUtils
extends Object


Constructor Summary
HiveInterruptUtils()
           
 
Method Summary
static HiveInterruptCallback add(HiveInterruptCallback command)
           
static void checkInterrupted()
          Checks if the current thread has been interrupted and throws RuntimeException is it has.
static void interrupt()
          Request interruption of current hive command
static HiveInterruptCallback remove(HiveInterruptCallback command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveInterruptUtils

public HiveInterruptUtils()
Method Detail

add

public static HiveInterruptCallback add(HiveInterruptCallback command)

remove

public static HiveInterruptCallback remove(HiveInterruptCallback command)

interrupt

public static void interrupt()
Request interruption of current hive command


checkInterrupted

public static void checkInterrupted()
Checks if the current thread has been interrupted and throws RuntimeException is it has.



Copyright © 2013 The Apache Software Foundation