org.objectweb.jonas.db.hsqldb
Class HsqlDBServiceImpl

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.ReconfigDispatcher
          extended by org.objectweb.jonas.service.AbsServiceImpl
              extended by org.objectweb.jonas.db.AbsDBServiceImpl
                  extended by org.objectweb.jonas.db.hsqldb.HsqlDBServiceImpl
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AbsDBServiceImplMBean, DBService, ReconfigDispatcherMBean, Service

public class HsqlDBServiceImpl
extends AbsDBServiceImpl
implements DBService, AbsDBServiceImplMBean

Embeds the HSQL database in JOnAS

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
HsqlDBServiceImpl()
           
 
Method Summary
protected  void doStart()
          Start the service.
protected  void doStop()
          Stop the service.
protected  void initServer(java.util.List users, java.lang.String databaseName, java.lang.String portNumber)
          Create a database with the specified arguments.
 
Methods inherited from class org.objectweb.jonas.db.AbsDBServiceImpl
doInit, getLogger
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Constructor Detail

HsqlDBServiceImpl

public HsqlDBServiceImpl()
Method Detail

initServer

protected void initServer(java.util.List users,
                          java.lang.String databaseName,
                          java.lang.String portNumber)
Create a database with the specified arguments.

Specified by:
initServer in class AbsDBServiceImpl
Parameters:
users - user/password (separated by a ":")
databaseName - name of the database
portNumber - port number of the database

doStart

protected void doStart()
                throws ServiceException
Start the service.

Overrides:
doStart in class AbsDBServiceImpl
Throws:
ServiceException - if the startup failed.

doStop

protected void doStop()
               throws ServiceException
Stop the service.

Overrides:
doStop in class AbsDBServiceImpl
Throws:
ServiceException - if the stop failed.