org.jboss.jdbc
Class DerbyDatabase
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.jdbc.DerbyDatabase
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, DerbyDatabaseMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean
public class DerbyDatabase
- extends ServiceMBeanSupport
- implements DerbyDatabaseMBean, MBeanRegistration
Integration with Derby.
Starts Derby database in-VM.
- Version:
- $Revision: 81038 $
- Author:
- Alexey Loubyansky
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DerbyDatabase
public DerbyDatabase()
setDatabase
public void setDatabase(String name)
- Set the database name.
- Specified by:
setDatabase
in interface DerbyDatabaseMBean
getDatabase
public String getDatabase()
- Get the database name.
- Specified by:
getDatabase
in interface DerbyDatabaseMBean
getPassword
public String getPassword()
- Specified by:
getPassword
in interface DerbyDatabaseMBean
- Returns:
- the password
getUser
public String getUser()
- Specified by:
getUser
in interface DerbyDatabaseMBean
- Returns:
- the user
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interface DerbyDatabaseMBean
- Parameters:
password
-
setUser
public void setUser(String user)
- Specified by:
setUser
in interface DerbyDatabaseMBean
- Parameters:
user
-
getObjectName
protected ObjectName getObjectName(MBeanServer server,
ObjectName name)
throws MalformedObjectNameException
- Overrides:
getObjectName
in class ServiceMBeanSupport
- Throws:
MalformedObjectNameException
startService
protected void startService()
throws Exception
- Overrides:
startService
in class ServiceMBeanSupport
- Throws:
Exception
stopService
protected void stopService()
throws Exception
- Overrides:
stopService
in class ServiceMBeanSupport
- Throws:
Exception
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.