org.apache.geronimo.derby
Class DerbySystemGBean
java.lang.Object
org.apache.geronimo.derby.DerbySystemGBean
- All Implemented Interfaces:
- DerbySystem, GBeanLifecycle
public class DerbySystemGBean
- extends Object
- implements DerbySystem, GBeanLifecycle
A GBean that represents an instance of an Apache Derby system (a system being
a collection of different databases).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
DerbySystemGBean
public DerbySystemGBean(ServerInfo serverInfo,
String derbySystemHome)
getDerbyHome
public String getDerbyHome()
- Specified by:
getDerbyHome
in interface DerbySystem
doStart
public void doStart()
throws Exception
- Description copied from interface:
GBeanLifecycle
- Starts the GBean. This informs the GBean that it is about to transition to the running state.
- Specified by:
doStart
in interface GBeanLifecycle
- Throws:
Exception
- if the target failed to start; this will cause a transition to the failed state
doStop
public void doStop()
throws Exception
- Description copied from interface:
GBeanLifecycle
- Stops the target. This informs the GBean that it is about to transition to the stopped state.
- Specified by:
doStop
in interface GBeanLifecycle
- Throws:
Exception
- if the target failed to stop; this will cause a transition to the failed state
doFail
public void doFail()
- Description copied from interface:
GBeanLifecycle
- Fails the GBean. This informs the GBean that it is about to transition to the failed state.
- Specified by:
doFail
in interface GBeanLifecycle
getGBeanInfo
public static GBeanInfo getGBeanInfo()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.