congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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