Class TestBackup.BackupListener

java.lang.Object
org.h2.test.db.TestBackup.BackupListener
All Implemented Interfaces:
EventListener, DatabaseEventListener
Enclosing class:
TestBackup

public static class TestBackup.BackupListener extends Object implements DatabaseEventListener
A backup listener to test concurrent backup.
  • Constructor Details

    • BackupListener

      public BackupListener()
  • Method Details

    • setProgress

      public void setProgress(int state, String name, long x, long max)
      Description copied from interface: DatabaseEventListener
      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.

      Specified by:
      setProgress in interface DatabaseEventListener
      Parameters:
      state - the state
      name - the object name
      x - the current position
      max - the highest possible value or 0 if unknown