org.ow2.jonas.db.h2
Class H2DBServiceImpl
java.lang.Object
org.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.db.base.AbsDBServiceImpl
org.ow2.jonas.db.h2.H2DBServiceImpl
- All Implemented Interfaces:
- AbsDBServiceImplMBean, DBService, Service
public class H2DBServiceImpl
- extends AbsDBServiceImpl
- implements DBService, AbsDBServiceImplMBean
Embeds the H2 database in JOnAS.
- Author:
- Florent Benoit
|
Method Summary |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
protected void |
initServer(List<User> users,
String databaseName,
String portNumber)
Create a database with the specified arguments. |
void |
setExtraArgs(String extraArgs)
Define extra arguments that can be set on the server initialization. |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
convertToList, doInit, getDomainName, getJonasServerName, getName, getSequenceNumber, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
H2DBServiceImpl
public H2DBServiceImpl()
initServer
protected void initServer(List<User> users,
String databaseName,
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.
setExtraArgs
public void setExtraArgs(String extraArgs)
- Define extra arguments that can be set on the server initialization.
- Parameters:
extraArgs - the list of arguments to use
doStop
protected void doStop()
throws ServiceException
- Stop the service.
- Overrides:
doStop in class AbsDBServiceImpl
- Throws:
ServiceException - if the stop failed.
Copyright © 2011 OW2 Consortium. All Rights Reserved.