|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.component.hsqldb.HSQLDBComponent
public class HSQLDBComponent
Allows to start an embedded HSQLDB server.
Field Summary | |
---|---|
private java.lang.String |
databaseName
Name of database. |
private static java.lang.String |
DEFAULT_PORT
Default port number. |
private static JLog |
logger
Logger. |
private static int |
MAX_RETRY_NB
Max retry number. |
private java.lang.String |
portNumber
port number used. |
private org.hsqldb.Server |
server
HsqlDB server. |
private static int |
SLEEP_VALUE
Sleep value. |
private java.util.List<User> |
users
List of users. |
Constructor Summary | |
---|---|
HSQLDBComponent()
Default constructor. Use default port number. |
Method Summary | |
---|---|
java.util.List<User> |
getUsers()
Gets the list of users. |
void |
init()
Init method. This method is called before the start method. |
void |
setDatabaseName(java.lang.String databaseName)
Sets the database name. |
void |
setPortNumber(java.lang.String portNumber)
Sets the port number. |
void |
setUsers(java.util.List<User> users)
Set the list of users. |
void |
start()
Start method. This method is called after the init method. |
void |
stop()
Stop method. This method is called when component needs to be stopped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
private java.util.List<User> users
private java.lang.String databaseName
private static final java.lang.String DEFAULT_PORT
private static final int SLEEP_VALUE
private static final int MAX_RETRY_NB
private java.lang.String portNumber
private org.hsqldb.Server server
Constructor Detail |
---|
public HSQLDBComponent()
Method Detail |
---|
public void init() throws EZBComponentException
init
in interface EZBComponent
EZBComponentException
- if the initialization has failed.public void start() throws EZBComponentException
start
in interface EZBComponent
EZBComponentException
- if the start has failed.public java.util.List<User> getUsers()
public void setUsers(java.util.List<User> users)
users
- the list of users.public void stop() throws EZBComponentException
stop
in interface EZBComponent
EZBComponentException
- if the stop is failing.public void setPortNumber(java.lang.String portNumber)
setPortNumber
in interface EmbeddedDBComponent
portNumber
- the port number to use.public void setDatabaseName(java.lang.String databaseName)
databaseName
- the name of the database.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |