|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.db.base.AbsDBServiceImpl
public abstract class AbsDBServiceImpl
Abstract database service to be implemented by implementation of Java databases.
| Field Summary | |
|---|---|
protected JmxService |
jmxService
The JmxService |
protected ObjectName |
objectName
The ObjectName associate to the database MBean |
protected String |
portNumber
port number used. |
| Constructor Summary | |
|---|---|
AbsDBServiceImpl()
Constructor initialization. |
|
| Method Summary | |
|---|---|
void |
bindJmxService(JmxService jmxService)
|
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
String |
getDbName()
|
String |
getDbUsers()
|
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
String |
getPortNumber()
|
protected abstract void |
initServer(List<User> users,
String databaseName,
String portNumber)
Create a database with the specified arguments. |
protected void |
registerMBean()
Register DB MBean |
void |
setDbname(String db)
|
void |
setPort(String port)
|
void |
setUsers(String users)
Transform the pair user:pass into User instances. |
void |
unbindJmxService(JmxService jmxService)
|
| 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 |
| Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject |
|---|
getModelMBean, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JmxService jmxService
JmxService
protected ObjectName objectName
ObjectName associate to the database MBean
protected String portNumber
| Constructor Detail |
|---|
public AbsDBServiceImpl()
| Method Detail |
|---|
public void setUsers(String users)
users - String of user/password (separated by a ":")public void setPort(String port)
port - Database portpublic void setDbname(String db)
db - Database name
protected abstract void initServer(List<User> users,
String databaseName,
String portNumber)
throws ServiceException
users - user/password (separated by a ":")databaseName - name of the databaseportNumber - port number of the database
ServiceException
protected void doStart()
throws ServiceException
doStart in class AbsServiceImplServiceException - if the startup failed.
protected void doStop()
throws ServiceException
doStop in class AbsServiceImplServiceException - if the stop failed.public static org.objectweb.util.monolog.api.Logger getLogger()
public void bindJmxService(JmxService jmxService)
jmxService - The JmxService to bindpublic void unbindJmxService(JmxService jmxService)
jmxService - The JmxService to unbindprotected void registerMBean()
public String getPortNumber()
public String getDbName()
public String getDbUsers()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||