|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.jdbc.HypersonicDatabase
public class HypersonicDatabase
Integration with HSQLDB
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.jdbc.HypersonicDatabaseMBean |
|---|
OBJECT_NAME |
| 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 | |
|---|---|
HypersonicDatabase()
Costructor, empty. |
|
| Method Summary | |
|---|---|
String |
getBindAddress()
Get the bind address for remote hypersonic. |
String |
getDatabase()
Get the database name. |
String |
getDatabaseManagerClass()
The database manager (UI) class, default is 'org.hsqldb.util.DatabaseManagerSwing' |
String |
getDatabasePath()
Get the full database path. |
boolean |
getNo_system_exit()
Get the no_system_exit flag. |
String |
getPassword()
The default password to use when connecting to the DB, default is "" |
boolean |
getPersist()
Deprecated. use inProcessMode. |
int |
getPort()
Get the port for remote hypersonic. |
String |
getServerClass()
|
String |
getShutdownCommand()
The shutdown command to use when stopping the DB |
boolean |
getSilent()
Get silent flag. |
boolean |
getTrace()
Get trace flag. |
String |
getUser()
The default user to use when connecting to the DB, default is "sa" |
boolean |
isInProcessMode()
Whether DB is in in-process mode or remote server mode, default is 'false' |
void |
setBindAddress(String address)
Set the bind address for remote hypersonic. |
void |
setDatabase(String name)
Set the database name. |
void |
setDatabaseManagerClass(String databaseManagerClass)
Set the database manager (UI) class. |
void |
setInProcessMode(boolean b)
If true the hypersonic is in process mode otherwise hypersonic is in server or remote mode. |
void |
setNo_system_exit(boolean no_system_exit)
If true the server thread for remote hypersonic does no call System.exit(). |
void |
setPassword(String password)
|
void |
setPersist(boolean persist)
Deprecated. use inProcessMode. |
void |
setPort(int port)
Set the port for remote hypersonic. |
void |
setServerClass(String serverClass)
Set the server class for remote hypersonic. |
void |
setShutdownCommand(String string)
|
void |
setSilent(boolean silent)
Set silent flag. |
void |
setTrace(boolean trace)
Set trace flag. |
void |
setUser(String user)
|
void |
startDatabaseManager()
Start of DatabaseManager accesible from the management console. |
protected void |
startService()
Start the database |
protected void |
stopService()
We now close the connection clean by calling the serverSocket throught jdbc. |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, 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 |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public HypersonicDatabase()
| Method Detail |
|---|
public void setDatabase(String name)
setDatabase in interface HypersonicDatabaseMBeanpublic String getDatabase()
getDatabase in interface HypersonicDatabaseMBeanpublic void setPort(int port)
setPort in interface HypersonicDatabaseMBeanpublic int getPort()
getPort in interface HypersonicDatabaseMBeanpublic void setBindAddress(String address)
setBindAddress in interface HypersonicDatabaseMBeanpublic String getBindAddress()
getBindAddress in interface HypersonicDatabaseMBeanpublic void setSilent(boolean silent)
setSilent in interface HypersonicDatabaseMBeanpublic boolean getSilent()
getSilent in interface HypersonicDatabaseMBeanpublic void setTrace(boolean trace)
setTrace in interface HypersonicDatabaseMBeanpublic boolean getTrace()
getTrace in interface HypersonicDatabaseMBeanpublic void setNo_system_exit(boolean no_system_exit)
System.exit().
setNo_system_exit in interface HypersonicDatabaseMBeanpublic boolean getNo_system_exit()
no_system_exit flag.
getNo_system_exit in interface HypersonicDatabaseMBeanpublic void setPersist(boolean persist)
inProcessMode.
setPersist in interface HypersonicDatabaseMBeanpublic boolean getPersist()
inProcessMode.
getPersist in interface HypersonicDatabaseMBeanpublic String getDatabasePath()
getDatabasePath in interface HypersonicDatabaseMBeanpublic boolean isInProcessMode()
HypersonicDatabaseMBean
isInProcessMode in interface HypersonicDatabaseMBeaninProcessMode flag.public String getShutdownCommand()
HypersonicDatabaseMBean
getShutdownCommand in interface HypersonicDatabaseMBeanpublic void setInProcessMode(boolean b)
setInProcessMode in interface HypersonicDatabaseMBeanb - in process mode or remote mode.public void setShutdownCommand(String string)
setShutdownCommand in interface HypersonicDatabaseMBeanstring - the shutdown commandpublic String getPassword()
HypersonicDatabaseMBean
getPassword in interface HypersonicDatabaseMBeanpublic String getUser()
HypersonicDatabaseMBean
getUser in interface HypersonicDatabaseMBeanpublic void setPassword(String password)
setPassword in interface HypersonicDatabaseMBeanpassword - public void setUser(String user)
setUser in interface HypersonicDatabaseMBeanuser - public String getDatabaseManagerClass()
HypersonicDatabaseMBean
getDatabaseManagerClass in interface HypersonicDatabaseMBeanpublic void setDatabaseManagerClass(String databaseManagerClass)
setDatabaseManagerClass in interface HypersonicDatabaseMBeandatabaseManagerClass - public String getServerClass()
public void setServerClass(String serverClass)
serverClass - public void startDatabaseManager()
startDatabaseManager in interface HypersonicDatabaseMBean
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||