net.sf.tapestry.contrib.mckoi
Class McKoiDB

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by net.sf.tapestry.contrib.mckoi.McKoiDB
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, McKoiDBMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class McKoiDB
extends org.jboss.system.ServiceMBeanSupport
implements McKoiDBMBean

An MBean used to start and stop an embedded instance of McKoi Database.

Since:
1.0.8
Version:
$Id: McKoiDB.java,v 1.1 2003/05/05 10:36:06 toby Exp $
Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
McKoiDB()
           
 
Method Summary
 java.lang.String getConfigPath()
           
 java.lang.String getName()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void setConfigPath(java.lang.String path)
          Sets the config path, the path to a properties file that sets database parameters.
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, 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.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

McKoiDB

public McKoiDB()
Method Detail

getConfigPath

public java.lang.String getConfigPath()
Specified by:
getConfigPath in interface McKoiDBMBean

setConfigPath

public void setConfigPath(java.lang.String path)
Description copied from interface: McKoiDBMBean
Sets the config path, the path to a properties file that sets database parameters.

Specified by:
setConfigPath in interface McKoiDBMBean

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Specified by:
preRegister in interface javax.management.MBeanRegistration
Overrides:
preRegister in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.system.ServiceMBean
Overrides:
getName in class org.jboss.system.ServiceMBeanSupport

startService

public void startService()
                  throws java.lang.Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

stopService

public void stopService()
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport