org.ow2.jonas.db.hsqldb
Class HsqlDBServiceImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.db.base.AbsDBServiceImpl
org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl
- All Implemented Interfaces:
- javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AbsDBServiceImplMBean, DBService, Service
public class HsqlDBServiceImpl
- extends AbsDBServiceImpl
- implements DBService, AbsDBServiceImplMBean
Embeds the HSQL database in JOnAS.
- Author:
- Florent Benoit
|
Method Summary |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
protected void |
initServer(java.util.List<User> users,
java.lang.String databaseName,
java.lang.String portNumber)
Create a database with the specified arguments. |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HsqlDBServiceImpl
public HsqlDBServiceImpl()
initServer
protected void initServer(java.util.List<User> 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 databaseportNumber - 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.
Copyright © 2010 OW2 Consortium. All Rights Reserved.