Tabnine Logo
HiveClientCache$CacheableHiveMetaStoreClient.tearDown
Code IndexAdd Tabnine to your IDE (free)

How to use
tearDown
method
in
org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient

Best Java code snippets using org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient.tearDown (Showing top 10 results out of 315)

origin: apache/hive

/**
 * Attempt to tear down the client connection.
 * The connection will be closed if the following conditions hold:
 *  1. There are no active user holding the client.
 *  2. The client has been evicted from the cache.
 */
public synchronized void tearDownIfUnused() {
 if (users.get() != 0) {
  LOG.warn("Non-zero user count preventing client tear down: users=" + users.get() + " expired=" + expiredFromCache);
 }
 if (users.get() == 0 && expiredFromCache) {
  this.tearDown();
 }
}
origin: apache/hive

 /**
  * GC is attempting to destroy the object.
  * No one references this client anymore, so it can be torn down without worrying about user counts.
  * @throws Throwable
  */
 @Override
 protected void finalize() throws Throwable {
  if (users.get() != 0) {
   LOG.warn("Closing client with non-zero user count: users=" + users.get() + " expired=" + expiredFromCache);
  }
  try {
   this.tearDown();
  } finally {
   super.finalize();
  }
 }
}
origin: org.apache.hive.hcatalog/hive-hcatalog-core

/**
 * Attempt to tear down the client connection.
 * The connection will be closed if the following conditions hold:
 *  1. There are no active user holding the client.
 *  2. The client has been evicted from the cache.
 */
public synchronized void tearDownIfUnused() {
 if (users.get() != 0) {
  LOG.warn("Non-zero user count preventing client tear down: users=" + users.get() + " expired=" + expiredFromCache);
 }
 if (users.get() == 0 && expiredFromCache) {
  this.tearDown();
 }
}
origin: org.apache.hive.hcatalog/hive-hcatalog-core

 /**
  * GC is attempting to destroy the object.
  * No one references this client anymore, so it can be torn down without worrying about user counts.
  * @throws Throwable
  */
 @Override
 protected void finalize() throws Throwable {
  if (users.get() != 0) {
   LOG.warn("Closing client with non-zero user count: users=" + users.get() + " expired=" + expiredFromCache);
  }
  try {
   this.tearDown();
  } finally {
   super.finalize();
  }
 }
}
origin: org.spark-project.hive.hcatalog/hive-hcatalog-core

/**
 * Tear down only if
 *  1. There are no active user
 *  2. It has expired from the cache
 */
public void tearDownIfUnused() {
 if (users.get() == 0 && expiredFromCache) {
  this.tearDown();
 }
}
origin: com.facebook.presto.hive/hive-apache

/**
 * Tear down only if
 *  1. There are no active user
 *  2. It has expired from the cache
 */
public void tearDownIfUnused() {
 if (users.get() == 0 && expiredFromCache) {
  this.tearDown();
 }
}
origin: org.spark-project.hive.hcatalog/hive-hcatalog-core

 /**
  * Last effort to clean up, may not even get called.
  * @throws Throwable
  */
 @Override
 protected void finalize() throws Throwable {
  try {
   this.tearDown();
  } finally {
   super.finalize();
  }
 }
}
origin: com.facebook.presto.hive/hive-apache

 /**
  * Last effort to clean up, may not even get called.
  * @throws Throwable
  */
 @Override
 protected void finalize() throws Throwable {
  try {
   this.tearDown();
  } finally {
   super.finalize();
  }
 }
}
origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core

 /**
  * Last effort to clean up, may not even get called.
  * @throws Throwable
  */
 @Override
 protected void finalize() throws Throwable {
  try {
   this.tearDown();
  } finally {
   super.finalize();
  }
 }
}
origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core

/**
 * Tear down only if
 *  1. There are no active user
 *  2. It has expired from the cache
 */
public void tearDownIfUnused() {
 if (users.get() == 0 && expiredFromCache) {
  this.tearDown();
 }
}
org.apache.hive.hcatalog.commonHiveClientCache$CacheableHiveMetaStoreClienttearDown

Javadoc

Close the underlying objects irrespective of whether they are in use or not.

Popular methods of HiveClientCache$CacheableHiveMetaStoreClient

  • release
    Decrements the user count.
  • tearDownIfUnused
    Tear down only if 1. There are no active user 2. It has expired from the cache
  • setExpiredFromCache
    Communicate to the client that it is no longer in the cache. The expiration time should be voided to
  • createDatabase
  • createTable
  • dropDatabase
  • dropTable
  • isOpen
    Make a call to hive meta store and see if the client is still usable. Some calls where the user prov

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now