Tabnine Logo
DatabaseContextImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
DatabaseContextImpl
in
com.pivotal.gemfirexd.internal.engine.db

Best Java code snippets using com.pivotal.gemfirexd.internal.engine.db.DatabaseContextImpl (Showing top 6 results out of 315)

origin: io.snappydata/gemfirexd-core

public void pushDbContext(ContextManager cm) {
 /* We cache the locale in the DatabaseContext
  * so that the Datatypes can get to it easily.
  */
 new DatabaseContextImpl(cm, this);
}
origin: io.snappydata/gemfirexd-core

/**
 * DOCUMENT ME!
 * 
 * @param t
 *          DOCUMENT ME!
 */
public void cleanupOnError(Throwable t) {
 if (!(t instanceof StandardException)) {
  return;
 }
 StandardException se = (StandardException)t;
 // Ensure the context is popped if the session is
 // going away.
 if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) {
  return;
 }
 popMe();
 // Asif:The bug is that the CacheClosedException may have been thrown by
 // remote cache but it would cause local cache shutdown, so check if the
 // current cache is genuinely closed or was it remote
 final GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow();
 if (se.getSeverity() == ExceptionSeverity.DATABASE_SEVERITY
   && (cache == null
     || cache.getCancelCriterion().cancelInProgress() != null)) {
  ContextService.getFactory().notifyAllActiveThreads(this);
  Monitor.getMonitor().shutdown(db);
 }
}
origin: io.snappydata/snappydata-store-core

/**
 * DOCUMENT ME!
 * 
 * @param t
 *          DOCUMENT ME!
 */
public void cleanupOnError(Throwable t) {
 if (!(t instanceof StandardException)) {
  return;
 }
 StandardException se = (StandardException)t;
 // Ensure the context is popped if the session is
 // going away.
 if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) {
  return;
 }
 popMe();
 // Asif:The bug is that the CacheClosedException may have been thrown by
 // remote cache but it would cause local cache shutdown, so check if the
 // current cache is genuinely closed or was it remote
 final GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow();
 if (se.getSeverity() == ExceptionSeverity.DATABASE_SEVERITY
   && (cache == null
     || cache.getCancelCriterion().cancelInProgress() != null)) {
  ContextService.getFactory().notifyAllActiveThreads(this);
  Monitor.getMonitor().shutdown(db);
 }
}
origin: io.snappydata/snappydata-store-core

public void pushDbContext(ContextManager cm) {
 /* We cache the locale in the DatabaseContext
  * so that the Datatypes can get to it easily.
  */
 new DatabaseContextImpl(cm, this);
}
origin: io.snappydata/gemfirexd

/**
 * DOCUMENT ME!
 * 
 * @param t
 *          DOCUMENT ME!
 */
public void cleanupOnError(Throwable t) {
 if (!(t instanceof StandardException)) {
  return;
 }
 StandardException se = (StandardException)t;
 // Ensure the context is popped if the session is
 // going away.
 if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) {
  return;
 }
 popMe();
 // Asif:The bug is that the CacheClosedException may have been thrown by
 // remote cache but it would cause local cache shutdown, so check if the
 // current cache is genuinely closed or was it remote
 final GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow();
 if (se.getSeverity() == ExceptionSeverity.DATABASE_SEVERITY
   && (cache == null
     || cache.getCancelCriterion().cancelInProgress() != null)) {
  ContextService.getFactory().notifyAllActiveThreads(this);
  Monitor.getMonitor().shutdown(db);
 }
}
origin: io.snappydata/gemfirexd

public void pushDbContext(ContextManager cm) {
 /* We cache the locale in the DatabaseContext
  * so that the Datatypes can get to it easily.
  */
 new DatabaseContextImpl(cm, this);
}
com.pivotal.gemfirexd.internal.engine.dbDatabaseContextImpl

Javadoc

A context that shutdowns down the database on a database exception.

Most used methods

  • <init>
    Creates a new DatabaseContextImpl object.
  • popMe

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm 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