|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.server.web.WebApp
public class WebApp
For each connection to a session, an object of this class is created. This class is used by the H2 Console.
| Field Summary | |
|---|---|
protected java.util.Properties |
attributes
|
protected boolean |
cache
|
protected java.lang.String |
headerLanguage
|
protected long |
listenerLastEvent
|
protected int |
listenerLastState
|
protected java.lang.String |
mimeType
|
protected WebServer |
server
|
protected org.h2.server.web.WebSession |
session
|
protected boolean |
stop
|
| Fields inherited from interface org.h2.api.DatabaseEventListener |
|---|
STATE_BACKUP_FILE, STATE_CREATE_INDEX, STATE_RECONNECTED, STATE_RECOVER, STATE_SCAN_FILE |
| Method Summary | |
|---|---|
protected java.lang.String |
adminShutdown()
Stop the application and the server. |
void |
closingDatabase()
This method is called before the database is closed normally. |
void |
diskSpaceIsLow(long stillAvailable)
This method is called if the disk space is very low. |
void |
exceptionThrown(java.sql.SQLException e,
java.lang.String sql)
This method is called if an exception occurred. |
void |
init(java.lang.String url)
This method is called just after creating the object. |
protected boolean |
loginAsync(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password)
Login in a separate thread if possible. |
void |
opened()
This method is called after the database has been opened. |
void |
setProgress(int state,
java.lang.String name,
int x,
int max)
This method is called for long running events, such as recovering, scanning a file or building an index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected WebServer server
protected org.h2.server.web.WebSession session
protected java.util.Properties attributes
protected java.lang.String mimeType
protected long listenerLastEvent
protected int listenerLastState
protected boolean cache
protected boolean stop
protected java.lang.String headerLanguage
| Method Detail |
|---|
protected java.lang.String adminShutdown()
protected boolean loginAsync(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password)
driver - the driver classurl - the database URLuser - the user namepassword - the password
public void closingDatabase()
DatabaseEventListener
closingDatabase in interface DatabaseEventListenerpublic void diskSpaceIsLow(long stillAvailable)
DatabaseEventListener
diskSpaceIsLow in interface DatabaseEventListenerstillAvailable - the estimated space that is still available, in bytes
(if known)
public void exceptionThrown(java.sql.SQLException e,
java.lang.String sql)
DatabaseEventListener
exceptionThrown in interface DatabaseEventListenere - the exceptionsql - the SQL statementpublic void init(java.lang.String url)
DatabaseEventListener
init in interface DatabaseEventListenerurl - - the database URLpublic void opened()
DatabaseEventListener
opened in interface DatabaseEventListener
public void setProgress(int state,
java.lang.String name,
int x,
int max)
DatabaseEventListener
setProgress in interface DatabaseEventListenerstate - the statename - the object namex - the current positionmax - the highest value
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||