public interface DatabaseEventListener extends EventListener
Modifier and Type | Field and Description |
---|---|
static int |
STATE_BACKUP_FILE
This state is used during the BACKUP command.
|
static int |
STATE_CREATE_INDEX
This state is used when re-creating an index.
|
static int |
STATE_RECONNECTED
This state is used after re-connecting to a database (if auto-reconnect
is enabled).
|
static int |
STATE_RECOVER
This state is used when re-applying the transaction log or rolling back
uncommitted transactions.
|
static int |
STATE_SCAN_FILE
This state is used when scanning the database file.
|
Modifier and Type | Method and Description |
---|---|
void |
closingDatabase()
This method is called before the database is closed normally.
|
void |
diskSpaceIsLow()
This method is called if the disk space is very low.
|
void |
exceptionThrown(SQLException e,
String sql)
This method is called if an exception occurred.
|
void |
init(String url)
This method is called just after creating the object.
|
void |
opened()
This method is called after the database has been opened.
|
void |
setProgress(int state,
String name,
int x,
int max)
This method is called for long running events, such as recovering,
scanning a file or building an index.
|
static final int STATE_SCAN_FILE
static final int STATE_CREATE_INDEX
static final int STATE_RECOVER
static final int STATE_BACKUP_FILE
static final int STATE_RECONNECTED
void init(String url)
url
- - the database URLvoid opened()
void diskSpaceIsLow()
void exceptionThrown(SQLException e, String sql)
e
- the exceptionsql
- the SQL statementvoid setProgress(int state, String name, int x, int max)
state
- the statename
- the object namex
- the current positionmax
- the highest valuevoid closingDatabase()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.