congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DatabaseEventListener.setProgress
Code IndexAdd Tabnine to your IDE (free)

How to use
setProgress
method
in
org.h2.api.DatabaseEventListener

Best Java code snippets using org.h2.api.DatabaseEventListener.setProgress (Showing top 8 results out of 315)

origin: com.h2database/h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 *
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */
public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this (user made) exception
    }
  }
}
origin: com.h2database/h2

eventListener.setProgress(DatabaseEventListener.STATE_RECONNECTED,
    databaseName, count, SysProperties.MAX_RECONNECT);
origin: orbisgis/orbisgis

@Override
public void setProgress(int state, String name, int x, int max) {
  DatabaseEventListener listener = delegateDatabaseEventListener;
  if(listener != null) {
    listener.setProgress(state, name, x, max);
  }
}
origin: com.eventsourcing/h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 *
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */
public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this (user made) exception
    }
  }
}
origin: com.h2database/com.springsource.org.h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 * 
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */

public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this second (user made) exception
    }
  }
}
origin: org.wowtools/h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 *
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */
public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this (user made) exception
    }
  }
}
origin: org.wowtools/h2

eventListener.setProgress(DatabaseEventListener.STATE_RECONNECTED,
    databaseName, count, SysProperties.MAX_RECONNECT);
origin: com.eventsourcing/h2

eventListener.setProgress(DatabaseEventListener.STATE_RECONNECTED,
    databaseName, count, SysProperties.MAX_RECONNECT);
org.h2.apiDatabaseEventListenersetProgress

Javadoc

This method is called for long running events, such as recovering, scanning a file or building an index.

More states might be added in future versions, therefore implementations should silently ignore states that they don't understand.

Popular methods of DatabaseEventListener

  • closingDatabase
    This method is called before the database is closed normally. It is save to connect to the database
  • exceptionThrown
    This method is called if an exception occurred.
  • init
    This method is called just after creating the object. This is done when opening the database if the
  • opened
    This method is called after the database has been opened. It is save to connect to the database and
  • diskSpaceIsLow
    This method is called if the disk space is very low. One strategy is to inform the user and wait for

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Permission (java.security)
    Legacy security code; do not use.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
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